summaryrefslogtreecommitdiffstats
path: root/ruby.h
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-12-04 08:06:32 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-12-04 08:06:32 +0000
commitbfa3155c6cead7dd2f4a042931799edc025902b2 (patch)
tree28b20578ce3dc48a29ed7b182bc1f31c2453479b /ruby.h
parentc8198d98bda5be95bb8b3c6620bbfd7f72bcd867 (diff)
downloadruby-bfa3155c6cead7dd2f4a042931799edc025902b2.tar.gz
ruby-bfa3155c6cead7dd2f4a042931799edc025902b2.tar.xz
ruby-bfa3155c6cead7dd2f4a042931799edc025902b2.zip
* ruby.h (OFFT2NUM): use LONG2NUM() if sizeof(long) equals to
sizeof(off_t). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 3ec19e1a9..72cdfd109 100644
--- a/ruby.h
+++ b/ruby.h
@@ -181,6 +181,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