diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-31 04:51:29 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-31 04:51:29 +0000 |
commit | 59182ccf69b5c0bcbf3a939a3595956bc592f234 (patch) | |
tree | d202df6338b83ddd3e3fd4e0bba7e453b5653186 /test/test_prime.rb | |
parent | 18affefbe5e7d0d940e7f924b375c4bde00ac380 (diff) | |
download | ruby-59182ccf69b5c0bcbf3a939a3595956bc592f234.tar.gz |
* numeric.c (rb_num2ulong_internal): New function similart to
rb_num2ulong but integer wrap around flag is also returned.
(rb_num2ulong): Use rb_num2ulong_internal.
(rb_num2uint): Use rb_num2ulong_internal and the wrap around flag is
used instead of negative_int_p(val).
(rb_num2ushort): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/test_prime.rb')
0 files changed, 0 insertions, 0 deletions