summaryrefslogtreecommitdiff
path: root/ruby.h
diff options
context:
space:
mode:
Diffstat (limited to 'ruby.h')
-rw-r--r--ruby.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ruby.h b/ruby.h
index e92f63039c..93e474a19b 100644
--- a/ruby.h
+++ b/ruby.h
@@ -157,6 +157,8 @@ VALUE rb_ull2inum _((unsigned LONG_LONG));
#if SIZEOF_OFF_T > SIZEOF_LONG && defined(HAVE_LONG_LONG)
# define OFFT2NUM(v) LL2NUM(v)
+#elif SIZEOF_OFF_T == SIZEOF_LONG
+# define OFFT2NUM(v) LONG2NUM(v)
#else
# define OFFT2NUM(v) INT2NUM(v)
#endif