summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorakr <akr@ruby-lang.org>2011-02-22 12:39:43 +0000
committerakr <akr@ruby-lang.org>2011-02-22 12:39:43 +0000
commitd16aa73d547f643c1134faa708d186e4957b5b62 (patch)
tree13355e3d7eda302a3254c99ba02c80a3c2a9fc0e /ext
parent48d2d299d9f51fbcec626bcee45db58b14f0a293 (diff)
downloadruby-openssl-history-d16aa73d547f643c1134faa708d186e4957b5b62.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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/openssl/ossl_digest.c b/ext/openssl/ossl_digest.c
index 29d5371..2b76fe7 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)
/*