mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
* ruby.h (OFFT2NUM): use LONG2NUM() if sizeof(long) equals to
sizeof(off_t). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6b279c3d09
commit
4df88e463d
2 changed files with 7 additions and 0 deletions
2
ruby.h
2
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue