diff options
Diffstat (limited to 'ext/openssl/ossl.h')
-rw-r--r-- | ext/openssl/ossl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/openssl/ossl.h b/ext/openssl/ossl.h index 83a927dabe..c843c06f5c 100644 --- a/ext/openssl/ossl.h +++ b/ext/openssl/ossl.h @@ -137,8 +137,8 @@ VALUE ossl_x509name_sk2ary(STACK_OF(X509_NAME) *names); VALUE ossl_buf2str(char *buf, int len); #define ossl_str_adjust(str, p) \ do{\ - int len = RSTRING_LENINT(str);\ - int newlen = rb_long2int((p) - (unsigned char*)RSTRING_PTR(str));\ + long len = RSTRING_LEN(str);\ + long newlen = (long)((p) - (unsigned char*)RSTRING_PTR(str));\ assert(newlen <= len);\ rb_str_set_len((str), newlen);\ }while(0) |