1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
matz 2006-12-04 08:06:32 +00:00
parent b52503466d
commit 0547746f04
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Mon Dec 4 10:48:03 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* ruby.h (OFFT2NUM): use LONG2NUM() if sizeof(long) equals to
sizeof(off_t).
Mon Dec 4 10:43:46 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (dyna_init_gen): dvar initialization only if dvar is

2
ruby.h
View file

@ -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