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_x509.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_x509.c')
-rw-r--r-- | ext/openssl/ossl_x509.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/ossl_x509.c b/ext/openssl/ossl_x509.c index 3b64db9f..19ec274a 100644 --- a/ext/openssl/ossl_x509.c +++ b/ext/openssl/ossl_x509.c @@ -11,7 +11,7 @@ VALUE mX509; -#define DefX509Const(x) rb_define_const(mX509, #x,INT2FIX(X509_##x)) +#define DefX509Const(x) rb_define_const(mX509, #x, INT2NUM(X509_##x)) #define DefX509Default(x,i) \ rb_define_const(mX509, "DEFAULT_" #x, rb_str_new2(X509_get_default_##i())) |