diff options
author | David Lechner <david@lechnology.com> | 2020-04-13 12:26:38 -0500 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2020-04-16 16:18:13 +1000 |
commit | 803e5eadea2e22360d1107b50290b54aa7c3afb7 (patch) | |
tree | 583b73a24434ef8790d64e8747cc9b5069117479 | |
parent | f534b9976511013bc4350826ea49ba8b6a92ce89 (diff) |
mpy-cross/main: Fix stderr_print_strn parameter type.
Change mp_uint_t to size_t to match the mp_print_strn_t function prototype.
This fixes a compiler warning when mp_uint_t and size_t are not the same
size.
-rw-r--r-- | mpy-cross/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mpy-cross/main.c b/mpy-cross/main.c index e4c4104c6..d4690470e 100644 --- a/mpy-cross/main.c +++ b/mpy-cross/main.c @@ -47,7 +47,7 @@ mp_uint_t mp_verbose_flag = 0; // Make it larger on a 64 bit machine, because pointers are larger. long heap_size = 1024 * 1024 * (sizeof(mp_uint_t) / 4); -STATIC void stderr_print_strn(void *env, const char *str, mp_uint_t len) { +STATIC void stderr_print_strn(void *env, const char *str, size_t len) { (void)env; ssize_t dummy = write(STDERR_FILENO, str, len); (void)dummy; |