summaryrefslogtreecommitdiff
path: root/py/runtime.h
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2020-02-04 16:19:40 -0500
committerDan Halbert <halbert@halwitz.org>2020-02-04 16:19:40 -0500
commit5164719e67878418cff51d26f40e4813da02bc83 (patch)
tree61ce839ea0b9364d05604fc9cad948bfb082c9f6 /py/runtime.h
parent57b566e73614c74a9fc74cd2d2007d91cdb507db (diff)
preserve errno in OSError
Diffstat (limited to 'py/runtime.h')
-rw-r--r--py/runtime.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/runtime.h b/py/runtime.h
index 319de5bb9..f81103557 100644
--- a/py/runtime.h
+++ b/py/runtime.h
@@ -161,7 +161,7 @@ NORETURN void mp_raise_RuntimeError(const compressed_string_t *msg);
NORETURN void mp_raise_ImportError(const compressed_string_t *msg);
NORETURN void mp_raise_IndexError(const compressed_string_t *msg);
NORETURN void mp_raise_OSError(int errno_);
-NORETURN void mp_raise_OSError_errno_str(int errno_, const char *str);
+NORETURN void mp_raise_OSError_errno_str(int errno_, mp_obj_t str);
NORETURN void mp_raise_OSError_msg(const compressed_string_t *msg);
NORETURN void mp_raise_OSError_msg_varg(const compressed_string_t *fmt, ...);
NORETURN void mp_raise_NotImplementedError(const compressed_string_t *msg);