diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-22 03:46:47 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-22 03:46:47 +0000 |
commit | 3f2ce6373f7902e02c559876fb7255b5e36aaa64 (patch) | |
tree | 685108cad30bda565d1bd67f803546686f077691 /internal.h | |
parent | e51a9b49f1ded288ee00732f0d7d4af01764a793 (diff) | |
download | ruby-3f2ce6373f7902e02c559876fb7255b5e36aaa64.tar.gz |
random.c: fix error message
* random.c (rb_random_ulong_limited): fix error message for negative
value. [ruby-dev:47061] [Bug #7903]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal.h b/internal.h index b5871fcd55..e66b5fd038 100644 --- a/internal.h +++ b/internal.h @@ -168,6 +168,7 @@ int rb_num_to_uint(VALUE val, unsigned int *ret); VALUE num_interval_step_size(VALUE from, VALUE to, VALUE step, int excl); int ruby_float_step(VALUE from, VALUE to, VALUE step, int excl); double ruby_float_mod(double x, double y); +int rb_num_negative_p(VALUE); /* object.c */ VALUE rb_obj_equal(VALUE obj1, VALUE obj2); |