summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMasaki Muranaka <[email protected]>2013-03-17 03:24:19 +0900
committerMasaki Muranaka <[email protected]>2013-03-17 03:24:19 +0900
commit11ed7a61280b0c063525770631e41900e595b80a (patch)
tree7ea43e4b9834e9c949e57c5cd62df2db5d502ceb /src
parent526f4bf6400acdc69b214076946c65b09828f643 (diff)
downloadmruby-11ed7a61280b0c063525770631e41900e595b80a.tar.gz
mruby-11ed7a61280b0c063525770631e41900e595b80a.zip
Fix a warning happens on MRB_INT64 enabled.
Diffstat (limited to 'src')
-rw-r--r--src/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.c b/src/string.c
index 32daaa3b5..7fefbefb5 100644
--- a/src/string.c
+++ b/src/string.c
@@ -2050,7 +2050,7 @@ mrb_cstr_to_inum(mrb_state *mrb, const char *str, int base, int badcheck)
char *end;
char sign = 1;
int c;
- unsigned int n;
+ unsigned long n;
mrb_int val;
#undef ISDIGIT