diff --git a/ChangeLog b/ChangeLog index 072db6ce97..eeee758766 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Feb 23 22:05:13 2011 Tanaka Akira + + * ext/openssl/ossl_engine.c: parenthesize macro arguments. + Tue Feb 22 23:15:17 2011 Shota Fukumori (sora_h) * lib/test/unit.rb: Fix --ruby option doesn't effect. diff --git a/ext/openssl/ossl_engine.c b/ext/openssl/ossl_engine.c index 3b48119b7f..111e418f91 100644 --- a/ext/openssl/ossl_engine.c +++ b/ext/openssl/ossl_engine.c @@ -13,20 +13,20 @@ #if defined(OSSL_ENGINE_ENABLED) #define WrapEngine(klass, obj, engine) do { \ - if (!engine) { \ + if (!(engine)) { \ ossl_raise(rb_eRuntimeError, "ENGINE wasn't initialized."); \ } \ - obj = Data_Wrap_Struct(klass, 0, ENGINE_free, engine); \ + (obj) = Data_Wrap_Struct((klass), 0, ENGINE_free, (engine)); \ } while(0) #define GetEngine(obj, engine) do { \ - Data_Get_Struct(obj, ENGINE, engine); \ - if (!engine) { \ + Data_Get_Struct((obj), ENGINE, (engine)); \ + if (!(engine)) { \ ossl_raise(rb_eRuntimeError, "ENGINE wasn't initialized."); \ } \ } while (0) #define SafeGetEngine(obj, engine) do { \ - OSSL_Check_Kind(obj, cEngine); \ - GetPKCS7(obj, engine); \ + OSSL_Check_Kind((obj), cEngine); \ + GetPKCS7((obj), (engine)); \ } while (0) /*