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 _______________________________________________ PySide mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/pyside
