diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-08-28 08:35:43 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-08-28 08:35:43 +0000 |
commit | de7c82654223f923cdb5c157fb3126e724a8fb32 (patch) | |
tree | b9ad7da5bbcebfbad27eb7a976989636ef110a59 /numeric.c | |
parent | 4917d573ee7fcf297a8ef7087035c6b142bcfe7a (diff) | |
download | ruby-de7c82654223f923cdb5c157fb3126e724a8fb32.tar.gz ruby-de7c82654223f923cdb5c157fb3126e724a8fb32.tar.xz ruby-de7c82654223f923cdb5c157fb3126e724a8fb32.zip |
* variable.c (rb_const_get_0): should check constants defined in
included modules, if klass is Object. [ruby-talk:79302]
* numeric.c (check_uint): check should be done using UINT_MAX, not
INT_MAX. this fix is submitted by <lyle@knology.net> in
[ruby-core:01486]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1024,8 +1024,8 @@ static void check_uint(num) unsigned long num; { - if (num > INT_MAX) { - rb_raise(rb_eRangeError, "integer %lu too big to convert to `int'", num); + if (num > UINT_MAX) { + rb_raise(rb_eRangeError, "integer %lu too big to convert to `unsigned int'", num); } } |