diff options
| author | Damien George <damien.p.george@gmail.com> | 2015-11-27 12:19:25 +0000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2015-11-29 14:25:04 +0000 |
| commit | 4e7107a572b55321f3f483f0293dd19b4f752c9b (patch) | |
| tree | 5cd4068be944446d225fac50688555128f736a38 /py/emitglue.c | |
| parent | fad7d9317b47330533ee6c84ffdaa3e53ad76e46 (diff) | |
py: Change mp_print_strn_t func type to use size_t for the str length.
Diffstat (limited to 'py/emitglue.c')
| -rw-r--r-- | py/emitglue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/emitglue.c b/py/emitglue.c index 344a3d96d..4eb9b76aa 100644 --- a/py/emitglue.c +++ b/py/emitglue.c @@ -606,8 +606,8 @@ void mp_raw_code_save(mp_raw_code_t *rc, mp_print_t *print) { #include <sys/stat.h> #include <fcntl.h> -STATIC void fd_print_strn(void *env, const char *str, mp_uint_t len) { - int fd = (mp_int_t)env; +STATIC void fd_print_strn(void *env, const char *str, size_t len) { + int fd = (intptr_t)env; ssize_t ret = write(fd, str, len); (void)ret; } |
