Re: [Python-Dev] PyInt_AsSsize_t on x64

2007-05-05 Thread Kristján Valur Jónsson
> -Original Message- > From: Armin Rigo [mailto:[EMAIL PROTECTED] > Given that the __long__ vs __int__ difference doesn't really make sense > any more nowadays, I'd think it would be saner to change the nb_long > slot of old-style instances instead of PyInt_AsSsize_t(). The logic > would b

Re: [Python-Dev] PyInt_AsSsize_t on x64

2007-05-05 Thread Armin Rigo
Hi Kristján, On Thu, May 03, 2007 at 03:57:26PM +, Kristján Valur Jónsson wrote: > if (nb->nb_long != 0) { > io = (PyIntObject*) (*nb->nb_long) (op); > } else { > io = (PyIntObject*) (*nb->nb_int) (op); > } > Now, how to fix this? Should the code in

[Python-Dev] PyInt_AsSsize_t on x64

2007-05-03 Thread Kristján Valur Jónsson
Hello there. I'm working on getting the 64 bit build of the trunk pass the testsuite. Here is one snag, that you could help me fix. In test_getargs2(), there is at line 190: self.failUnlessEqual(99, getargs_n(Long())) Now, the Long class has a __int__ method which returns 99L. However, we run in