summaryrefslogtreecommitdiff
path: root/spec/rubyspec/optional/capi/ext/fixnum_spec.c
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rubyspec/optional/capi/ext/fixnum_spec.c')
-rw-r--r--spec/rubyspec/optional/capi/ext/fixnum_spec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/rubyspec/optional/capi/ext/fixnum_spec.c b/spec/rubyspec/optional/capi/ext/fixnum_spec.c
index 78d452f936..c3a207b387 100644
--- a/spec/rubyspec/optional/capi/ext/fixnum_spec.c
+++ b/spec/rubyspec/optional/capi/ext/fixnum_spec.c
@@ -17,15 +17,15 @@ static VALUE fixnum_spec_FIX2UINT(VALUE self, VALUE value) {
#ifdef HAVE_RB_FIX2UINT
static VALUE fixnum_spec_rb_fix2uint(VALUE self, VALUE value) {
- unsigned int i = rb_fix2uint(value);
- return UINT2NUM(i);
+ unsigned long i = rb_fix2uint(value);
+ return ULONG2NUM(i);
}
#endif
#ifdef HAVE_RB_FIX2INT
static VALUE fixnum_spec_rb_fix2int(VALUE self, VALUE value) {
- int i = rb_fix2int(value);
- return INT2NUM(i);
+ long i = rb_fix2int(value);
+ return LONG2NUM(i);
}
#endif