diff options
author | Damien George <damien.p.george@gmail.com> | 2017-12-13 22:22:57 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-12-13 22:22:57 +1100 |
commit | 1b223a42bf79640d37567c4f427767ee97d45897 (patch) | |
tree | 5367321cdb435fa26727b8333dc22581715d69a5 | |
parent | 3f6d3ccc11866ea6f84fa43fb50ac9fe5a171fe8 (diff) |
extmod/modure: Add cast to workaround bug in MSVC.
-rw-r--r-- | extmod/modure.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/extmod/modure.c b/extmod/modure.c index d0180881d..31c2b9864 100644 --- a/extmod/modure.c +++ b/extmod/modure.c @@ -165,7 +165,8 @@ STATIC mp_obj_t re_split(size_t n_args, const mp_obj_t *args) { break; } } - mp_local_free(caps); + // cast is a workaround for a bug in msvc (see above) + mp_local_free((char**)caps); mp_obj_t s = mp_obj_new_str_of_type(str_type, (const byte*)subj.begin, subj.end - subj.begin); mp_obj_list_append(retval, s); |