diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-19 15:47:21 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-19 15:47:21 +0000 |
commit | 1343f8c53647239dd63f03a9b5437b7e10fc1d39 (patch) | |
tree | 49bfe070accf748f1842d47bf5de6604b0eb380a /ext/openssl/ossl_bn.c | |
parent | e3cc8344866ee864c42e4fd61a336c2c67f72ed3 (diff) | |
download | ruby-1343f8c53647239dd63f03a9b5437b7e10fc1d39.tar.gz |
* 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
Diffstat (limited to 'ext/openssl/ossl_bn.c')
-rw-r--r-- | ext/openssl/ossl_bn.c | 12 |
1 files changed, 6 insertions, 6 deletions
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) /* |