mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* numeric.c (ULLONG_MAX): fallback definition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
63ab190151
commit
03c618daf0
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
Sat Jul 9 16:54:35 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* numeric.c (ULLONG_MAX): fallback definition.
|
||||
|
||||
Sat Jul 9 15:59:19 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (rb_w32_{read,write}): should be signed.
|
||||
|
|
|
@ -1927,6 +1927,9 @@ rb_num2fix(VALUE val)
|
|||
#define LLONG_MIN_MINUS_ONE ((double)LLONG_MIN-1)
|
||||
#define LLONG_MAX_PLUS_ONE (2*(double)(LLONG_MAX/2+1))
|
||||
#define ULLONG_MAX_PLUS_ONE (2*(double)(ULLONG_MAX/2+1))
|
||||
#ifndef ULLONG_MAX
|
||||
#define ULLONG_MAX ((unsigned LONG_LONG)LLONG_MAX*2+1)
|
||||
#endif
|
||||
|
||||
LONG_LONG
|
||||
rb_num2ll(VALUE val)
|
||||
|
|
Loading…
Reference in a new issue