mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* numeric.c (rb_fix2ushort): fix typo. use num rb_num2ushort()
instead of num2uint(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9debadd948
commit
302220a8a5
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon Nov 14 14:52:54 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* numeric.c (rb_fix2ushort): fix typo. use num rb_num2ushort()
|
||||
instead of num2uint().
|
||||
|
||||
Sun Nov 13 10:31:03 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* include/ruby/ruby.h: add #ifdef comment.
|
||||
|
|
|
@ -2019,7 +2019,7 @@ rb_fix2ushort(VALUE val)
|
|||
unsigned long num;
|
||||
|
||||
if (!FIXNUM_P(val)) {
|
||||
return rb_num2uint(val);
|
||||
return rb_num2ushort(val);
|
||||
}
|
||||
num = FIX2ULONG(val);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue