Skip to content

Commit a8aa199

Browse files
committed
extmod/modure: Use correct integer type for n_args argument.
1 parent 44e6e34 commit a8aa199

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

extmod/modure.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,17 +115,17 @@ STATIC mp_obj_t re_exec(bool is_anchored, uint n_args, const mp_obj_t *args) {
115115
return match;
116116
}
117117

118-
STATIC mp_obj_t re_match(uint n_args, const mp_obj_t *args) {
118+
STATIC mp_obj_t re_match(mp_uint_t n_args, const mp_obj_t *args) {
119119
return re_exec(true, n_args, args);
120120
}
121121
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(re_match_obj, 2, 4, re_match);
122122

123-
STATIC mp_obj_t re_search(uint n_args, const mp_obj_t *args) {
123+
STATIC mp_obj_t re_search(mp_uint_t n_args, const mp_obj_t *args) {
124124
return re_exec(false, n_args, args);
125125
}
126126
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(re_search_obj, 2, 4, re_search);
127127

128-
STATIC mp_obj_t re_split(uint n_args, const mp_obj_t *args) {
128+
STATIC mp_obj_t re_split(mp_uint_t n_args, const mp_obj_t *args) {
129129
mp_obj_re_t *self = args[0];
130130
Subject subj;
131131
mp_uint_t len;
@@ -182,7 +182,7 @@ STATIC const mp_obj_type_t re_type = {
182182
.locals_dict = (mp_obj_t)&re_locals_dict,
183183
};
184184

185-
STATIC mp_obj_t mod_re_compile(uint n_args, const mp_obj_t *args) {
185+
STATIC mp_obj_t mod_re_compile(mp_uint_t n_args, const mp_obj_t *args) {
186186
const char *re_str = mp_obj_str_get_str(args[0]);
187187
int size = re1_5_sizecode(re_str);
188188
if (size == -1) {
@@ -215,12 +215,12 @@ STATIC mp_obj_t mod_re_exec(bool is_anchored, uint n_args, const mp_obj_t *args)
215215
return match;
216216
}
217217

218-
STATIC mp_obj_t mod_re_match(uint n_args, const mp_obj_t *args) {
218+
STATIC mp_obj_t mod_re_match(mp_uint_t n_args, const mp_obj_t *args) {
219219
return mod_re_exec(true, n_args, args);
220220
}
221221
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mod_re_match_obj, 2, 4, mod_re_match);
222222

223-
STATIC mp_obj_t mod_re_search(uint n_args, const mp_obj_t *args) {
223+
STATIC mp_obj_t mod_re_search(mp_uint_t n_args, const mp_obj_t *args) {
224224
return mod_re_exec(false, n_args, args);
225225
}
226226
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mod_re_search_obj, 2, 4, mod_re_search);

0 commit comments

Comments
 (0)