diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-08-22 18:02:30 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-08-22 18:02:30 +0900 |
commit | be23fc960337e475af70419c5036cce215fd9ac9 (patch) | |
tree | 5ace9a5afd0de9e7dcba15b6a416f9e52f1d578d /ext/openssl/ossl_x509store.c | |
parent | b099663eb81f4ef6ff8963271a04442cef2667dd (diff) | |
download | ruby-openssl-be23fc960337e475af70419c5036cce215fd9ac9.tar.gz |
Avoid using *2FIX() where we don't know if it really fits in Fixnum
Diffstat (limited to 'ext/openssl/ossl_x509store.c')
-rw-r--r-- | ext/openssl/ossl_x509store.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/openssl/ossl_x509store.c b/ext/openssl/ossl_x509store.c index a2e7ed6a..75f8238b 100644 --- a/ext/openssl/ossl_x509store.c +++ b/ext/openssl/ossl_x509store.c @@ -582,7 +582,7 @@ ossl_x509stctx_get_err(VALUE self) GetX509StCtx(self, ctx); - return INT2FIX(X509_STORE_CTX_get_error(ctx)); + return INT2NUM(X509_STORE_CTX_get_error(ctx)); } /* @@ -629,7 +629,7 @@ ossl_x509stctx_get_err_depth(VALUE self) GetX509StCtx(self, ctx); - return INT2FIX(X509_STORE_CTX_get_error_depth(ctx)); + return INT2NUM(X509_STORE_CTX_get_error_depth(ctx)); } /* |