summaryrefslogtreecommitdiff
path: root/ruby.h
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-10-16 09:13:20 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-10-16 09:13:20 +0000
commit8353f303e3c1109e04ef47707df3b7d84b12c5fe (patch)
tree33bc2638db8c9dac5e94b0d6fa9af090c45774b8 /ruby.h
parent525836d683d8c0cc2ff2479875eb9e71bd63d151 (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.h')
-rw-r--r--ruby.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ruby.h b/ruby.h
index 8f1fbf9..a043ce5 100644
--- a/ruby.h
+++ b/ruby.h
@@ -194,8 +194,8 @@ int rb_num2int _((VALUE));
#define NUM2INT(x) (FIXNUM_P(x)?FIX2INT(x):rb_num2int((VALUE)x))
int rb_fix2int _((VALUE));
#define FIX2INT(x) rb_fix2int((VALUE)x)
-#define NUM2UINT(x) ((unsigned int)NUM2ULONG(x))
-#define FIX2UINT(x) ((unsigned int)FIX2ULONG(x))
+#define NUM2UINT(x) ((unsigned int)NUM2INT(x))
+#define FIX2UINT(x) ((unsigned int)FIX2INT(x))
#else
#define NUM2INT(x) NUM2LONG(x)
#define NUM2UINT(x) NUM2ULONG(x)