From 1343f8c53647239dd63f03a9b5437b7e10fc1d39 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 19 Feb 2011 15:47:21 +0000 Subject: * ext/openssl/ossl_bn.c: parenthesize macro arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/openssl/ossl_bn.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'ext/openssl') diff --git a/ext/openssl/ossl_bn.c b/ext/openssl/ossl_bn.c index da62f07f46..6f0181289d 100644 --- a/ext/openssl/ossl_bn.c +++ b/ext/openssl/ossl_bn.c @@ -12,22 +12,22 @@ #include "ossl.h" #define WrapBN(klass, obj, bn) do { \ - if (!bn) { \ + if (!(bn)) { \ ossl_raise(rb_eRuntimeError, "BN wasn't initialized!"); \ } \ - obj = Data_Wrap_Struct(klass, 0, BN_clear_free, bn); \ + (obj) = Data_Wrap_Struct((klass), 0, BN_clear_free, (bn)); \ } while (0) #define GetBN(obj, bn) do { \ - Data_Get_Struct(obj, BIGNUM, bn); \ - if (!bn) { \ + Data_Get_Struct((obj), BIGNUM, (bn)); \ + if (!(bn)) { \ ossl_raise(rb_eRuntimeError, "BN wasn't initialized!"); \ } \ } while (0) #define SafeGetBN(obj, bn) do { \ - OSSL_Check_Kind(obj, cBN); \ - GetBN(obj, bn); \ + OSSL_Check_Kind((obj), cBN); \ + GetBN((obj), (bn)); \ } while (0) /* -- cgit v1.2.3