in reply to Re^2: XS: returning a 64-bit unsigned int?
in thread XS: returning a 64-bit unsigned int?
The UV version turns on IOK and *preserves* IsUV instead of turning on IOK and IsUV.
The other two don't preserve anything.
I don't know why the difference.
There is a SvIsUV_on(sv) that would have done the trick. Keep in mind that your original approach didn't converting the scalar to one that supports IVs (if possible) and you didn't handle magic. If it's just an internal scalar, you could get away with not doing those, though.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: XS: returning a 64-bit unsigned int?
by BrowserUk (Patriarch) on Sep 27, 2011 at 08:06 UTC | |
by ikegami (Patriarch) on Sep 27, 2011 at 08:57 UTC | |
by BrowserUk (Patriarch) on Sep 27, 2011 at 09:21 UTC | |
by ikegami (Patriarch) on Sep 27, 2011 at 18:00 UTC | |
by BrowserUk (Patriarch) on Sep 27, 2011 at 18:09 UTC | |
|