From be23fc960337e475af70419c5036cce215fd9ac9 Mon Sep 17 00:00:00 2001 From: Kazuki Yamaguchi Date: Mon, 22 Aug 2016 18:02:30 +0900 Subject: Avoid using *2FIX() where we don't know if it really fits in Fixnum --- ext/openssl/ossl_x509.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/openssl/ossl_x509.c') 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())) -- cgit v1.2.3