summaryrefslogtreecommitdiffhomepage
path: root/src/numeric.c
diff options
context:
space:
mode:
authorYukihiro Matz Matsumoto <[email protected]>2013-03-24 00:20:35 +0900
committerYukihiro Matz Matsumoto <[email protected]>2013-03-24 00:20:35 +0900
commitf0ac204f21661d7f1dd2fbd1e3f08a95b81d0b21 (patch)
tree8bf0d2b64b0f89fb26158a90cb69cb654a54727d /src/numeric.c
parentdaeaa51b2dac8ab94d6d24425078594906ca1465 (diff)
downloadmruby-f0ac204f21661d7f1dd2fbd1e3f08a95b81d0b21.tar.gz
mruby-f0ac204f21661d7f1dd2fbd1e3f08a95b81d0b21.zip
Use size_t instead of int. This is for portability.
Diffstat (limited to 'src/numeric.c')
-rw-r--r--src/numeric.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/numeric.c b/src/numeric.c
index 2abb96bec..1e089c970 100644
--- a/src/numeric.c
+++ b/src/numeric.c
@@ -447,7 +447,8 @@ flo_hash(mrb_state *mrb, mrb_value num)
{
mrb_float d;
char *c;
- int i, hash;
+ size_t i;
+ int hash;
d = (mrb_float)mrb_fixnum(num);
/* normalize -0.0 to 0.0 */