Skip to content

Commit

Permalink
* numeric.c (rb_fix2ushort): fix typo. use num rb_num2ushort()
Browse files Browse the repository at this point in the history
  instead of num2uint().



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
kosaki committed Nov 14, 2011
1 parent 9debadd commit 302220a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Mon Nov 14 14:52:54 2011 KOSAKI Motohiro <[email protected]>

* numeric.c (rb_fix2ushort): fix typo. use num rb_num2ushort()
instead of num2uint().

Sun Nov 13 10:31:03 2011 KOSAKI Motohiro <[email protected]>

* include/ruby/ruby.h: add #ifdef comment.
Expand Down
2 changes: 1 addition & 1 deletion numeric.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 302220a

Please sign in to comment.