mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 09:50:15 +01:00
py: Change mp_print_strn_t func type to use size_t for the str length.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user