summaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl_pkey_rsa.c
diff options
context:
space:
mode:
authorakr <akr@ruby-lang.org>2011-03-07 15:03:18 +0000
committerakr <akr@ruby-lang.org>2011-03-07 15:03:18 +0000
commit7f0db181beaead474f7ae5dde555f29b4f57c44c (patch)
tree9931580a71189ea0707772a83f1ca7711d0dd155 /ext/openssl/ossl_pkey_rsa.c
parentd67367096beeff92a9a4d49f90a7af58a66a37d1 (diff)
downloadruby-openssl-history-7f0db181beaead474f7ae5dde555f29b4f57c44c.tar.gz
* ext/openssl/ossl_pkey_rsa.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/ossl_pkey_rsa.c')
-rw-r--r--ext/openssl/ossl_pkey_rsa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/openssl/ossl_pkey_rsa.c b/ext/openssl/ossl_pkey_rsa.c
index 4ccfded..6d58209 100644
--- a/ext/openssl/ossl_pkey_rsa.c
+++ b/ext/openssl/ossl_pkey_rsa.c
@@ -13,8 +13,8 @@
#include "ossl.h"
#define GetPKeyRSA(obj, pkey) do { \
- GetPKey(obj, pkey); \
- if (EVP_PKEY_type(pkey->type) != EVP_PKEY_RSA) { /* PARANOIA? */ \
+ GetPKey((obj), (pkey)); \
+ if (EVP_PKEY_type((pkey)->type) != EVP_PKEY_RSA) { /* PARANOIA? */ \
ossl_raise(rb_eRuntimeError, "THIS IS NOT A RSA!") ; \
} \
} while (0)