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