ruby-changes:24578
From: nobu <ko1@a...>
Date: Mon, 6 Aug 2012 00:39:09 +0900 (JST)
Subject: [ruby-changes:24578] nobu:r36629 (trunk): ruby.h: fix cast
nobu 2012-08-06 00:38:55 +0900 (Mon, 06 Aug 2012) New Revision: 36629 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36629 Log: ruby.h: fix cast * include/ruby/ruby.h (NUM2SSIZET): fix type to cast. Modified files: trunk/ChangeLog trunk/include/ruby/ruby.h Index: include/ruby/ruby.h =================================================================== --- include/ruby/ruby.h (revision 36628) +++ include/ruby/ruby.h (revision 36629) @@ -581,7 +581,7 @@ #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) Index: ChangeLog =================================================================== --- ChangeLog (revision 36628) +++ ChangeLog (revision 36629) @@ -1,3 +1,7 @@ +Mon Aug 6 00:38:52 2012 Nobuyoshi Nakada <nobu@r...> + + * include/ruby/ruby.h (NUM2SSIZET): fix type to cast. + Sun Aug 5 21:10:36 2012 Narihiro Nakamura <authornari@g...> * gc.c : if ENABLE_VM_OBJSPACE is 1, rest_sweep is not defined. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/