On Wednesday 17 March 2004 12:47, Hans-Peter Jansen wrote: > On Tuesday 16 March 2004 19:45, Hans-Peter Jansen wrote: > > On Tuesday 16 March 2004 19:04, Phil Thompson wrote: > > > SIP doesn't support long longs so changing the typedef won't help > > > very much. (You would have to hack the generated code.) > > Just checked sip.3.10.1 and sip-4.0rc3 with PyQt 3.11 against ia32: no > problems there at all with both variants, so it's definitely a x86-64 > issue.
I think I've found it. Can you try the attached patch. It's for SIP 3, but the same fix is needed for SIP 4. Thanks, Phil
--- gencode.c.orig 2004-03-17 19:19:16.000000000 +0000 +++ gencode.c 2004-03-17 19:11:47.000000000 +0000 @@ -5255,6 +5255,11 @@ ad -> nrderefs = 0; } + /* Array sizes are always integers. */ + + if (isArraySize(ad)) + ad -> atype = int_type; + resetIsReference(ad); if (ad -> defval == NULL)
