From e1e8297a76cbe7918458cb37043ad498228c6139 Mon Sep 17 00:00:00 2001 From: akr Date: Wed, 2 Mar 2011 12:15:50 +0000 Subject: [PATCH] * ext/openssl/ossl_pkey_dh.c: parenthesize macro arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ ext/openssl/ossl_pkey_dh.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 05f70d8e5b..52db44d0f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Mar 2 21:15:00 2011 Tanaka Akira + + * ext/openssl/ossl_pkey_dh.c: parenthesize macro arguments. + Wed Mar 2 14:24:04 2011 Shota Fukumori * lib/test/unit/parallel.rb: Fix name from `inclement_io` to diff --git a/ext/openssl/ossl_pkey_dh.c b/ext/openssl/ossl_pkey_dh.c index 5ea575eaf9..4311fa1e96 100644 --- a/ext/openssl/ossl_pkey_dh.c +++ b/ext/openssl/ossl_pkey_dh.c @@ -13,8 +13,8 @@ #include "ossl.h" #define GetPKeyDH(obj, pkey) do { \ - GetPKey(obj, pkey); \ - if (EVP_PKEY_type(pkey->type) != EVP_PKEY_DH) { /* PARANOIA? */ \ + GetPKey((obj), (pkey)); \ + if (EVP_PKEY_type((pkey)->type) != EVP_PKEY_DH) { /* PARANOIA? */ \ ossl_raise(rb_eRuntimeError, "THIS IS NOT A DH!") ; \ } \ } while (0)