diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-22 12:39:43 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-22 12:39:43 +0000 |
commit | b7af3f6f0cf09846f90345aa134722f27714ca3f (patch) | |
tree | c740dbb139a2e9611c3e2ec16a33c2e342b8ee41 /ext | |
parent | 06aeddaf926a38c6ff436988b6ed373a00fb23df (diff) | |
download | ruby-b7af3f6f0cf09846f90345aa134722f27714ca3f.tar.gz |
* ext/openssl/ossl_digest.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/openssl/ossl_digest.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/openssl/ossl_digest.c b/ext/openssl/ossl_digest.c index 29d5371518..2b76fe7a49 100644 --- a/ext/openssl/ossl_digest.c +++ b/ext/openssl/ossl_digest.c @@ -11,14 +11,14 @@ #include "ossl.h" #define GetDigest(obj, ctx) do { \ - Data_Get_Struct(obj, EVP_MD_CTX, ctx); \ - if (!ctx) { \ + Data_Get_Struct((obj), EVP_MD_CTX, (ctx)); \ + if (!(ctx)) { \ ossl_raise(rb_eRuntimeError, "Digest CTX wasn't initialized!"); \ } \ } while (0) #define SafeGetDigest(obj, ctx) do { \ - OSSL_Check_Kind(obj, cDigest); \ - GetDigest(obj, ctx); \ + OSSL_Check_Kind((obj), cDigest); \ + GetDigest((obj), (ctx)); \ } while (0) /* |