Skip to content

Commit

Permalink
Use a type more suitable for casting pointers to integers
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrtj committed Sep 20, 2024
1 parent a3d9feb commit 3f034cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Secp256k1.xs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ new(classname)

/* Blessing the object */
SV *secp_sv = newSViv(0);
RETVAL = sv_setref_iv(secp_sv, SvPVbyte_nolen(classname), (unsigned long) ctx);
RETVAL = sv_setref_iv(secp_sv, SvPVbyte_nolen(classname), (uintptr_t) ctx);
SvREADONLY_on(secp_sv);
OUTPUT:
RETVAL
Expand Down

0 comments on commit 3f034cc

Please sign in to comment.