Skip to content

Commit 1b223a4

Browse files
committed
extmod/modure: Add cast to workaround bug in MSVC.
1 parent 3f6d3cc commit 1b223a4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

extmod/modure.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ STATIC mp_obj_t re_split(size_t n_args, const mp_obj_t *args) {
165165
break;
166166
}
167167
}
168-
mp_local_free(caps);
168+
// cast is a workaround for a bug in msvc (see above)
169+
mp_local_free((char**)caps);
169170

170171
mp_obj_t s = mp_obj_new_str_of_type(str_type, (const byte*)subj.begin, subj.end - subj.begin);
171172
mp_obj_list_append(retval, s);

0 commit comments

Comments
 (0)