summaryrefslogtreecommitdiff
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
commit0547746f04f92a0efc05b722f1cc9115cd598fa2 (patch)
treea0021d85520cbb237f2ec75966796e05ac89426d /ruby.h
parentb52503466de55a90ce9062eb1e1f7a624a2b112d (diff)
* ruby.h (OFFT2NUM): use LONG2NUM() if sizeof(long) equals to
sizeof(off_t). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@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 e92f630..93e474a 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