diff options
author | akr <akr@ruby-lang.org> | 2011-02-24 14:03:34 +0000 |
---|---|---|
committer | akr <akr@ruby-lang.org> | 2011-02-24 14:03:34 +0000 |
commit | 6e3f8fa0aa4224b0d0d43e5d5441a7fbeadebd81 (patch) | |
tree | 0d8c1521d776865d1d7cfb13415785a07e527948 /ext/openssl/ossl_hmac.c | |
parent | da7b45da5d458d75b3658e682d827862929172d9 (diff) | |
download | ruby-openssl-history-6e3f8fa0aa4224b0d0d43e5d5441a7fbeadebd81.tar.gz |
* ext/openssl/ossl_hmac.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/ossl_hmac.c')
-rw-r--r-- | ext/openssl/ossl_hmac.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/openssl/ossl_hmac.c b/ext/openssl/ossl_hmac.c index d87fc3e..6357502 100644 --- a/ext/openssl/ossl_hmac.c +++ b/ext/openssl/ossl_hmac.c @@ -13,16 +13,16 @@ #include "ossl.h" #define MakeHMAC(obj, klass, ctx) \ - obj = Data_Make_Struct(klass, HMAC_CTX, 0, ossl_hmac_free, ctx) + (obj) = Data_Make_Struct((klass), HMAC_CTX, 0, ossl_hmac_free, (ctx)) #define GetHMAC(obj, ctx) do { \ - Data_Get_Struct(obj, HMAC_CTX, ctx); \ - if (!ctx) { \ + Data_Get_Struct((obj), HMAC_CTX, (ctx)); \ + if (!(ctx)) { \ ossl_raise(rb_eRuntimeError, "HMAC wasn't initialized"); \ } \ } while (0) #define SafeGetHMAC(obj, ctx) do { \ - OSSL_Check_Kind(obj, cHMAC); \ - GetHMAC(obj, ctx); \ + OSSL_Check_Kind((obj), cHMAC); \ + GetHMAC((obj), (ctx)); \ } while (0) /* |