diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-14 12:04:28 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-14 12:04:28 +0000 |
commit | 8f59ed795da4da2d77c3025a78c3b965910ae360 (patch) | |
tree | cc3c32a779032559b30d2c59349a5e2ab3027693 /ext/fiddle/conversions.h | |
parent | c6e6380665c83a54d32c0a7ee2ff80d6705a778b (diff) | |
download | ruby-8f59ed795da4da2d77c3025a78c3b965910ae360.tar.gz |
* ext/fiddle/conversions.h: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/fiddle/conversions.h')
-rw-r--r-- | ext/fiddle/conversions.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/fiddle/conversions.h b/ext/fiddle/conversions.h index 166c5d9af4..eb16125908 100644 --- a/ext/fiddle/conversions.h +++ b/ext/fiddle/conversions.h @@ -25,9 +25,9 @@ ffi_type * int_to_ffi_type(int type); 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))) |