diff options
author | stijn <stinos@zoho.com> | 2014-11-16 10:56:22 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-11-21 19:38:33 +0000 |
commit | b89eaaa2e29d94ab3c837c680312df9edbee6f7f (patch) | |
tree | 7882c5c6949d32ee1918c3f4bd213869551d0a24 /extmod/modure.c | |
parent | c9f8f653adbff865d5cebdf0e46dc22680cebce4 (diff) | |
download | micropython-b89eaaa2e29d94ab3c837c680312df9edbee6f7f.tar.gz micropython-b89eaaa2e29d94ab3c837c680312df9edbee6f7f.zip |
windows: Update config with latest features
- update mpconfigport.h to reflect latest unix version
- fix compilation error in modure due to msvc not allowing dynamic arrays
Diffstat (limited to 'extmod/modure.c')
-rw-r--r-- | extmod/modure.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/modure.c b/extmod/modure.c index ae47a2129a..deb3679475 100644 --- a/extmod/modure.c +++ b/extmod/modure.c @@ -134,7 +134,7 @@ STATIC mp_obj_t re_split(uint n_args, const mp_obj_t *args) { } mp_obj_t retval = mp_obj_new_list(0, NULL); - const char *caps[caps_num]; + const char **caps = alloca(caps_num * sizeof(char*)); while (true) { int res = re1_5_recursiveloopprog(&self->re, &subj, caps, caps_num, false); |