in reply to XS: returning a 64-bit unsigned int?
Petition p5p?
It seems you can't get an IV no matter what you do
SV* bob() PREINIT: SV* temp; //~ unsigned int uncle = 42; unsigned long long uncle = 42; CODE: //~ temp = newSVuv( 42 ); temp = newSVuv( uncle ); SvIOK_only_UV( temp ); warn("we got em %p SvIOK_UV(%b)SvUVX(%u)", temp, SvIOK_UV(temp +), SvUVX(temp) ); RETVAL = temp; OUTPUT: RETVAL
Always gives
we got em 3f8d14 SvIOK_UV(0)SvUVX(42) at -e line 1. SV = IV(0x3f8d10) at 0x3f8d14 REFCNT = 1 FLAGS = (TEMP,IOK,pIOK) IV = 42
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: XS: returning a 64-bit unsigned int?
by BrowserUk (Patriarch) on Sep 27, 2011 at 06:57 UTC | |
by Anonymous Monk on Sep 27, 2011 at 06:58 UTC | |
by BrowserUk (Patriarch) on Sep 27, 2011 at 07:08 UTC | |
by ikegami (Patriarch) on Sep 27, 2011 at 07:21 UTC |
In Section
Seekers of Perl Wisdom