mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* numeric.c (rb_num2ulong): explicit cast to suppress a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3885841dce
commit
eb5f96d70c
1 changed files with 1 additions and 1 deletions
|
@ -1731,7 +1731,7 @@ rb_num2ulong(VALUE val)
|
|||
case T_FLOAT:
|
||||
if (RFLOAT_VALUE(val) <= (double)LONG_MAX
|
||||
&& RFLOAT_VALUE(val) >= (double)LONG_MIN) {
|
||||
return (RFLOAT_VALUE(val));
|
||||
return (VALUE)RFLOAT_VALUE(val);
|
||||
}
|
||||
else {
|
||||
char buf[24];
|
||||
|
|
Loading…
Add table
Reference in a new issue