summaryrefslogtreecommitdiff
path: root/py/runtime.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-08-31 17:00:14 +1000
committerDamien George <damien.p.george@gmail.com>2017-08-31 17:00:14 +1000
commitca21aed0a11903db04fc96056f8a08e452aaf504 (patch)
treee413e96931940e7ca0736de4c62ac109f4435fe0 /py/runtime.c
parent6c9fca2aa911e31f6c1b48d3b950b4dc058473d4 (diff)
py: Make m_malloc_fail() have void return type, since it doesn't return.
Diffstat (limited to 'py/runtime.c')
-rw-r--r--py/runtime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/runtime.c b/py/runtime.c
index 1db6c93c3..21ef42577 100644
--- a/py/runtime.c
+++ b/py/runtime.c
@@ -1408,7 +1408,7 @@ mp_obj_t mp_parse_compile_execute(mp_lexer_t *lex, mp_parse_input_kind_t parse_i
#endif // MICROPY_ENABLE_COMPILER
-NORETURN void *m_malloc_fail(size_t num_bytes) {
+NORETURN void m_malloc_fail(size_t num_bytes) {
DEBUG_printf("memory allocation failed, allocating %u bytes\n", (uint)num_bytes);
#if MICROPY_ENABLE_GC
if (gc_is_locked()) {