diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-05-09 08:49:38 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-05-09 08:49:38 +0900 |
| commit | f4cf8ea423d8f9df1d341adba63d1416779aae8a (patch) | |
| tree | ee89b697760d7b528d4767c4ccd1534dadf42bc0 /src/string.c | |
| parent | 2e4e7f7cd15e8ccd6bc6bf8608e0f167f68e2a22 (diff) | |
| download | mruby-f4cf8ea423d8f9df1d341adba63d1416779aae8a.tar.gz mruby-f4cf8ea423d8f9df1d341adba63d1416779aae8a.zip | |
partial VC support
Diffstat (limited to 'src/string.c')
| -rw-r--r-- | src/string.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/string.c b/src/string.c index 183763bf2..dc7fdfae8 100644 --- a/src/string.c +++ b/src/string.c @@ -3843,6 +3843,7 @@ mrb_cstr_to_inum(mrb_state *mrb, const char *str, int base, int badcheck) // long i; // mrb_value z; // BDIGIT *zds; + unsigned long val; #undef ISDIGIT #define ISDIGIT(c) ('0' <= (c) && (c) <= '9') @@ -3958,7 +3959,7 @@ mrb_cstr_to_inum(mrb_state *mrb, const char *str, int base, int badcheck) } len *= strlen(str)*sizeof(char); - unsigned long val = strtoul((char*)str, &end, base); + val = strtoul((char*)str, &end, base); if (badcheck) { if (end == str) goto bad; /* no number */ |
