diff --git a/ChangeLog b/ChangeLog index de2aca677f..ee673a70c9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sat Mar 19 12:30:25 2011 Tanaka Akira + + * ext/openssl/ossl_x509revoked.c: parenthesize macro arguments. + Fri Mar 18 20:44:36 2011 Tanaka Akira * ext/openssl/ossl_x509req.c: parenthesize macro arguments. diff --git a/ext/openssl/ossl_x509revoked.c b/ext/openssl/ossl_x509revoked.c index 6ba73b13b8..320abaa7ae 100644 --- a/ext/openssl/ossl_x509revoked.c +++ b/ext/openssl/ossl_x509revoked.c @@ -11,20 +11,20 @@ #include "ossl.h" #define WrapX509Rev(klass, obj, rev) do { \ - if (!rev) { \ + if (!(rev)) { \ ossl_raise(rb_eRuntimeError, "REV wasn't initialized!"); \ } \ - obj = Data_Wrap_Struct(klass, 0, X509_REVOKED_free, rev); \ + (obj) = Data_Wrap_Struct((klass), 0, X509_REVOKED_free, (rev)); \ } while (0) #define GetX509Rev(obj, rev) do { \ - Data_Get_Struct(obj, X509_REVOKED, rev); \ - if (!rev) { \ + Data_Get_Struct((obj), X509_REVOKED, (rev)); \ + if (!(rev)) { \ ossl_raise(rb_eRuntimeError, "REV wasn't initialized!"); \ } \ } while (0) #define SafeGetX509Rev(obj, rev) do { \ - OSSL_Check_Kind(obj, cX509Rev); \ - GetX509Rev(obj, rev); \ + OSSL_Check_Kind((obj), cX509Rev); \ + GetX509Rev((obj), (rev)); \ } while (0) /*