diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-11 14:17:24 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-11 14:17:24 +0000 |
commit | 698960439d7234518b1d0493eaf84b03104a91d6 (patch) | |
tree | 6ea372bfe20a76676d440c9732c404a65811dbdc /ext/dl | |
parent | c750f945c60312575708c7fd06b30e4356f00af7 (diff) | |
download | ruby-698960439d7234518b1d0493eaf84b03104a91d6.tar.gz |
* ext/dl/cfunc.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl')
-rw-r--r-- | ext/dl/cfunc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dl/cfunc.c b/ext/dl/cfunc.c index f13ff3405f..a050ab04b3 100644 --- a/ext/dl/cfunc.c +++ b/ext/dl/cfunc.c @@ -298,10 +298,10 @@ rb_dlcfunc_inspect(VALUE self) # define DECL_FUNC_CDECL(f,ret,args,val) \ - ret (FUNC_CDECL(*f))(args) = (ret (FUNC_CDECL(*))(args))(VALUE)(val) + ret (FUNC_CDECL(*(f)))(args) = (ret (FUNC_CDECL(*))(args))(VALUE)(val) #ifdef FUNC_STDCALL # define DECL_FUNC_STDCALL(f,ret,args,val) \ - ret (FUNC_STDCALL(*f))(args) = (ret (FUNC_STDCALL(*))(args))(VALUE)(val) + ret (FUNC_STDCALL(*(f)))(args) = (ret (FUNC_STDCALL(*))(args))(VALUE)(val) #endif #define CALL_CASE switch( RARRAY_LEN(ary) ){ \ |