From 11f521b98e276262e140f1a40469c910267a7021 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 28 Aug 2003 08:35:43 +0000 Subject: * 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 in [ruby-core:01486] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- numeric.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numeric.c') diff --git a/numeric.c b/numeric.c index 71e4539d07..7d373e4083 100644 --- a/numeric.c +++ b/numeric.c @@ -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); } } -- cgit v1.2.3