... char * str; sv_setiv(integer, SvIV(integer)); // <--- here str = SvPV_nolen(integer); ... #### IV: 144115188075868217 IV: 144115188075868224