Skip to content

Commit ebb9396

Browse files
webmeisterdpgeorge
authored andcommitted
esp8266,minimal,pic16bit: Use size_t for mp_builtin_open argument.
py/builtin.h declares mp_builtin_open with the first argument of type size_t. Make all implementations conform to this declaration.
1 parent cd0987f commit ebb9396

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

esp8266/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ mp_import_stat_t mp_import_stat(const char *path) {
122122
return MP_IMPORT_STAT_NO_EXIST;
123123
}
124124

125-
mp_obj_t mp_builtin_open(uint n_args, const mp_obj_t *args, mp_map_t *kwargs) {
125+
mp_obj_t mp_builtin_open(size_t n_args, const mp_obj_t *args, mp_map_t *kwargs) {
126126
return mp_const_none;
127127
}
128128
MP_DEFINE_CONST_FUN_OBJ_KW(mp_builtin_open_obj, 1, mp_builtin_open);

minimal/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ mp_import_stat_t mp_import_stat(const char *path) {
7777
return MP_IMPORT_STAT_NO_EXIST;
7878
}
7979

80-
mp_obj_t mp_builtin_open(uint n_args, const mp_obj_t *args, mp_map_t *kwargs) {
80+
mp_obj_t mp_builtin_open(size_t n_args, const mp_obj_t *args, mp_map_t *kwargs) {
8181
return mp_const_none;
8282
}
8383
MP_DEFINE_CONST_FUN_OBJ_KW(mp_builtin_open_obj, 1, mp_builtin_open);

pic16bit/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ mp_import_stat_t mp_import_stat(const char *path) {
106106
return MP_IMPORT_STAT_NO_EXIST;
107107
}
108108

109-
mp_obj_t mp_builtin_open(uint n_args, const mp_obj_t *args, mp_map_t *kwargs) {
109+
mp_obj_t mp_builtin_open(size_t n_args, const mp_obj_t *args, mp_map_t *kwargs) {
110110
return mp_const_none;
111111
}
112112
MP_DEFINE_CONST_FUN_OBJ_KW(mp_builtin_open_obj, 1, mp_builtin_open);

0 commit comments

Comments
 (0)