From: Armin R. <ar...@us...> - 2005-02-28 09:11:01
|
Update of /cvsroot/psyco/psyco/py-utils In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28179 Modified Files: xam.py Log Message: The common issue of %x giving a warning and a different result with negative numbers depending on the Python version. Index: xam.py =================================================================== RCS file: /cvsroot/psyco/psyco/py-utils/xam.py,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** xam.py 1 Dec 2004 20:18:17 -0000 1.20 --- xam.py 28 Feb 2005 09:10:51 -0000 1.21 *************** *** 239,243 **** if data[k:k+4] == '\x66\x66\x66\x66': # detected a rt_local_buf_t structure ! next, key = struct.unpack('ll', data[k+4:k+12]) data = data[k+12:] addr += k+12 --- 239,243 ---- if data[k:k+4] == '\x66\x66\x66\x66': # detected a rt_local_buf_t structure ! next, key = struct.unpack('LL', data[k+4:k+12]) data = data[k+12:] addr += k+12 |