Re: [Python-Dev] [Python-checkins] r43028 - python/trunk/Modules/_ctypes/cfield.c

2006-03-15 Thread Tim Peters
Author: thomas.heller Date: Tue Mar 14 21:39:27 2006 New Revision: 43028 Modified: python/trunk/Modules/_ctypes/cfield.c Log: Cast an Py_ssize_t to int, to avoid a compiler warning. Modified: python/trunk/Modules/_ctypes/cfield.c

Re: [Python-Dev] [Python-checkins] r43028 - python/trunk/Modules/_ctypes/cfield.c

2006-03-15 Thread Neal Norwitz
On 3/15/06, Tim Peters [EMAIL PROTECTED] wrote: [Neal Norwitz] This isn't exactly correct. On a 64-bit system, the value will be cast into a 32-bit integer. This is true for both Win64 and Unix. If you change the cast to a long and use %ld (lowercase ell), that will work correctly on