1 parent 3f6d3cc commit 1b223a4Copy full SHA for 1b223a4
1 file changed
extmod/modure.c
@@ -165,7 +165,8 @@ STATIC mp_obj_t re_split(size_t n_args, const mp_obj_t *args) {
165
break;
166
}
167
168
- mp_local_free(caps);
+ // cast is a workaround for a bug in msvc (see above)
169
+ mp_local_free((char**)caps);
170
171
mp_obj_t s = mp_obj_new_str_of_type(str_type, (const byte*)subj.begin, subj.end - subj.begin);
172
mp_obj_list_append(retval, s);
0 commit comments