ruby-changes:18846
From: akr <ko1@a...>
Date: Mon, 14 Feb 2011 21:04:34 +0900 (JST)
Subject: [ruby-changes:18846] Ruby:r30871 (trunk): * ext/fiddle/conversions.h: parenthesize macro arguments.
akr 2011-02-14 21:04:28 +0900 (Mon, 14 Feb 2011) New Revision: 30871 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30871 Log: * ext/fiddle/conversions.h: parenthesize macro arguments. Modified files: trunk/ChangeLog trunk/ext/fiddle/conversions.h Index: ChangeLog =================================================================== --- ChangeLog (revision 30870) +++ ChangeLog (revision 30871) @@ -1,3 +1,7 @@ +Mon Feb 14 21:04:01 2011 Tanaka Akira <akr@f...> + + * ext/fiddle/conversions.h: parenthesize macro arguments. + Mon Feb 14 18:41:47 2011 KOSAKI Motohiro <kosaki.motohiro@g...> * win32/setup.mak (USE_RUBYGEMS): fixed r30835. It didn't work on Index: ext/fiddle/conversions.h =================================================================== --- ext/fiddle/conversions.h (revision 30870) +++ ext/fiddle/conversions.h (revision 30871) @@ -25,9 +25,9 @@ void value_to_generic(int type, VALUE src, fiddle_generic * dst); VALUE generic_to_value(VALUE rettype, fiddle_generic retval); -#define VALUE2GENERIC(_type, _src, _dst) value_to_generic(_type, _src, _dst) +#define VALUE2GENERIC(_type, _src, _dst) value_to_generic((_type), (_src), (_dst)) #define INT2FFI_TYPE(_type) int_to_ffi_type(_type) -#define GENERIC2VALUE(_type, _retval) generic_to_value(_type, _retval) +#define GENERIC2VALUE(_type, _retval) generic_to_value((_type), (_retval)) #if SIZEOF_VOIDP == SIZEOF_LONG # define PTR2NUM(x) (ULONG2NUM((unsigned long)(x))) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/