aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl_x509store.c
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-08-22 18:02:30 +0900
committerKazuki Yamaguchi <k@rhe.jp>2016-08-22 18:02:30 +0900
commitbe23fc960337e475af70419c5036cce215fd9ac9 (patch)
tree5ace9a5afd0de9e7dcba15b6a416f9e52f1d578d /ext/openssl/ossl_x509store.c
parentb099663eb81f4ef6ff8963271a04442cef2667dd (diff)
downloadruby-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.c4
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));
}
/*