diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-03 01:56:01 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-03 01:56:01 +0000 |
commit | 1d670ab0f090c0232e2a7a619b70ebb559453331 (patch) | |
tree | 8b603d1279d3e5f4e53e4d5407074c46a0639920 /ext/openssl/ossl_digest.c | |
parent | fdfb939d72e8b66540df42821e3facfcda5aaf15 (diff) | |
download | ruby-1d670ab0f090c0232e2a7a619b70ebb559453331.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_digest.c')
-rw-r--r-- | ext/openssl/ossl_digest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/ossl_digest.c b/ext/openssl/ossl_digest.c index fdf13e98e5..7e5e7ff1ab 100644 --- a/ext/openssl/ossl_digest.c +++ b/ext/openssl/ossl_digest.c @@ -38,7 +38,7 @@ GetDigestPtr(VALUE obj) const EVP_MD *md; ASN1_OBJECT *oid = NULL; - if (TYPE(obj) == T_STRING) { + if (RB_TYPE_P(obj, T_STRING)) { const char *name = StringValueCStr(obj); md = EVP_get_digestbyname(name); |