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:
parent
506ea448b3
commit
9765389017
1 changed files with 2 additions and 2 deletions
4
util.c
4
util.c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue