From b7af3f6f0cf09846f90345aa134722f27714ca3f Mon Sep 17 00:00:00 2001 From: akr Date: Tue, 22 Feb 2011 12:39:43 +0000 Subject: [PATCH] * 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 --- ChangeLog | 4 ++++ ext/openssl/ossl_digest.c | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index af2ecc88cc..6d9446e53c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Feb 22 21:39:28 2011 Tanaka Akira + + * ext/openssl/ossl_digest.c: parenthesize macro arguments. + Tue Feb 22 14:34:26 2011 Shota Fukumori (sora_h) * lib/test/unit.rb: Fix merging miss. 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) /*