aboutsummaryrefslogtreecommitdiffstats
path: root/ossl_bn.c
diff options
context:
space:
mode:
Diffstat (limited to 'ossl_bn.c')
-rw-r--r--ossl_bn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ossl_bn.c b/ossl_bn.c
index b53b31b..fac4ba3 100644
--- a/ossl_bn.c
+++ b/ossl_bn.c
@@ -115,12 +115,12 @@ ossl_bn_initialize(int argc, VALUE *argv, VALUE self)
}
break;
case 10:
- if (!BN_dec2bn(&bn, StringValuePtr(str))) {
+ if (!BN_dec2bn(&bn, RSTRING(str)->ptr)) {
ossl_raise(eBNError, "");
}
break;
case 16:
- if (!BN_hex2bn(&bn, StringValuePtr(str))) {
+ if (!BN_hex2bn(&bn, RSTRING(str)->ptr)) {
ossl_raise(eBNError, "");
}
break;