1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

downcase MUL_OVERFLOW. it is a local variable.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-01-03 04:31:37 +00:00
parent 506ea448b3
commit 9765389017

4
util.c
View file

@ -88,7 +88,7 @@ scan_digits(const char *str, int base, size_t *retlen, int *overflow)
const char *start = str;
unsigned long ret = 0, x;
unsigned long MUL_OVERFLOW = (~(unsigned long)0) / base;
unsigned long mul_overflow = (~(unsigned long)0) / base;
int c;
*overflow = 0;
@ -98,7 +98,7 @@ scan_digits(const char *str, int base, size_t *retlen, int *overflow)
*retlen = (str-1) - start;
return ret;
}
if (MUL_OVERFLOW < ret)
if (mul_overflow < ret)
*overflow = 1;
ret *= base;
x = ret;