diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-08-05 15:38:55 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-08-05 15:38:55 +0000 |
commit | 09288de5dfec5deb9749c8551fbf502cee9d62cf (patch) | |
tree | 2319723dd29fc41fb81abf1912a5b74588a7121b /include | |
parent | cf4aa712e4124862bf453f1ffc1e8ae432efb1f9 (diff) |
ruby.h: fix cast
* include/ruby/ruby.h (NUM2SSIZET): fix type to cast.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/ruby.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index c551791412..6c13a26588 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -581,7 +581,7 @@ rb_num2ll_inline(VALUE x) #if defined(HAVE_LONG_LONG) && SIZEOF_SIZE_T > SIZEOF_LONG # define NUM2SIZET(x) ((size_t)NUM2ULL(x)) -# define NUM2SSIZET(x) ((size_t)NUM2LL(x)) +# define NUM2SSIZET(x) ((ssize_t)NUM2LL(x)) #else # define NUM2SIZET(x) NUM2ULONG(x) # define NUM2SSIZET(x) NUM2LONG(x) |