summaryrefslogtreecommitdiffstatshomepage
path: root/extmod/re1.5/compilecode.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-11-01 02:39:01 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-11-01 02:39:01 +0300
commitd0601b0a1f0bccd28f8b483580f77c21f8998cd1 (patch)
tree0d6e89c8840526528006b71865fa35b153679022 /extmod/re1.5/compilecode.c
parentaeadf7607d36c5570f168a226d34c1fd48bd6a29 (diff)
downloadmicropython-d0601b0a1f0bccd28f8b483580f77c21f8998cd1.tar.gz
micropython-d0601b0a1f0bccd28f8b483580f77c21f8998cd1.zip
extmod/re1.5: Workaround issue with mingw32-gcc 4.2.1.
Diffstat (limited to 'extmod/re1.5/compilecode.c')
-rw-r--r--extmod/re1.5/compilecode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/re1.5/compilecode.c b/extmod/re1.5/compilecode.c
index 7a1b98128b..e4635f034a 100644
--- a/extmod/re1.5/compilecode.c
+++ b/extmod/re1.5/compilecode.c
@@ -65,7 +65,7 @@ static const char *_compilecode(const char *re, ByteProg *prog, int sizecode)
}
case '(': {
term = PC;
- int sub;
+ int sub = 0;
int capture = re[1] != '?' || re[2] != ':';
if (capture) {