summaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl_pkcs7.c
diff options
context:
space:
mode:
authornobu <nobu@ruby-lang.org>2014-08-03 01:56:01 +0000
committernobu <nobu@ruby-lang.org>2014-08-03 01:56:01 +0000
commitb7774221227e727bf6e220f475d2d6b4bd045b72 (patch)
tree13a2255016d9218557d55d33f28bfa934a42cc2f /ext/openssl/ossl_pkcs7.c
parenta3c31dc959d7a62a7275b553bab8d853c810e82f (diff)
downloadruby-openssl-history-b7774221227e727bf6e220f475d2d6b4bd045b72.tar.gz
ext: prefer RB_TYPE_P over comparison TYPE with constants
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/ossl_pkcs7.c')
-rw-r--r--ext/openssl/ossl_pkcs7.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/ossl_pkcs7.c b/ext/openssl/ossl_pkcs7.c
index 553a580..66c2053 100644
--- a/ext/openssl/ossl_pkcs7.c
+++ b/ext/openssl/ossl_pkcs7.c
@@ -376,7 +376,7 @@ ossl_pkcs7_sym2typeid(VALUE sym)
{ NULL, 0 },
};
- if(TYPE(sym) == T_SYMBOL) s = rb_id2name(SYM2ID(sym));
+ if (RB_TYPE_P(sym, T_SYMBOL)) s = rb_id2name(SYM2ID(sym));
else s = StringValuePtr(sym);
for(i = 0; i < numberof(p7_type_tab); i++){
if(p7_type_tab[i].name == NULL)