[PySide] Shiboken Large Address Bug

Matthew Woehlke mw_triad at users.sourceforge.net
Thu Feb 6 21:44:38 CET 2014


On 2014-02-06 15:31, Tony Barbieri wrote:
> Or if size_t isn't appropriate, shouldn't wrapinstance take an unsigned
> long long or uint64_t?  I don't believe unsigned long will work for 64 bit
> as it's 32 bits on Windows.  Should wrapinstance be changed to support all
> platforms?

[u]intptr_t is the only "correct" type if you need to represent a 
pointer as an integer.

Fortunately, unlike other types from C99¹ stdint.h, it looks like these 
are well supported (as far back as VS 2005 anyway, according to MSDN).

(¹ ...which Microsoft has never made any serious effort to support prior 
to it being mandated in C++11.)

-- 
Matthew




More information about the PySide mailing list