py: Change mp_print_strn_t func type to use size_t for the str length.

This commit is contained in:
Damien George
2015-11-27 12:19:25 +00:00
parent fad7d9317b
commit 4e7107a572
6 changed files with 10 additions and 10 deletions

View File

@@ -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;
}