From 3b17a84e4a428f5dcfebb70cdb92107875027236 Mon Sep 17 00:00:00 2001 From: akr Date: Tue, 15 Mar 2011 09:34:51 +0000 Subject: [PATCH] * ext/openssl/ossl_x509crl.c: parenthesize macro arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ ext/openssl/ossl_x509crl.c | 12 ++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 639ddecd1f..5b082c9057 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Mar 15 18:34:27 2011 Tanaka Akira + + * ext/openssl/ossl_x509crl.c: parenthesize macro arguments. + Tue Mar 15 09:49:03 2011 Shota Fukumori * test/misc/test_ruby_mode.rb(test_singleton_class): Skip for Pending. diff --git a/ext/openssl/ossl_x509crl.c b/ext/openssl/ossl_x509crl.c index d0221a18bc..a9d45db8e2 100644 --- a/ext/openssl/ossl_x509crl.c +++ b/ext/openssl/ossl_x509crl.c @@ -11,20 +11,20 @@ #include "ossl.h" #define WrapX509CRL(klass, obj, crl) do { \ - if (!crl) { \ + if (!(crl)) { \ ossl_raise(rb_eRuntimeError, "CRL wasn't initialized!"); \ } \ - obj = Data_Wrap_Struct(klass, 0, X509_CRL_free, crl); \ + (obj) = Data_Wrap_Struct((klass), 0, X509_CRL_free, (crl)); \ } while (0) #define GetX509CRL(obj, crl) do { \ - Data_Get_Struct(obj, X509_CRL, crl); \ - if (!crl) { \ + Data_Get_Struct((obj), X509_CRL, (crl)); \ + if (!(crl)) { \ ossl_raise(rb_eRuntimeError, "CRL wasn't initialized!"); \ } \ } while (0) #define SafeGetX509CRL(obj, crl) do { \ - OSSL_Check_Kind(obj, cX509CRL); \ - GetX509CRL(obj, crl); \ + OSSL_Check_Kind((obj), cX509CRL); \ + GetX509CRL((obj), (crl)); \ } while (0) /*