[pywin32-checkins] pywin32/win32/src PyLARGE_INTEGER.cpp,1.7,1.8
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
|
From: Mark H. <mha...@us...> - 2004-05-26 08:51:16
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8754 Modified Files: PyLARGE_INTEGER.cpp Log Message: A 64bit int with the high-bit of the loword set would create a negative large int. Index: PyLARGE_INTEGER.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/PyLARGE_INTEGER.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** PyLARGE_INTEGER.cpp 7 Nov 2003 03:58:17 -0000 1.7 --- PyLARGE_INTEGER.cpp 26 May 2004 08:51:04 -0000 1.8 *************** *** 100,104 **** PyObject *PyLong_FromTwoInts(int hidword, unsigned lodword) { ! if (hidword==0) return PyInt_FromLong(lodword); else { --- 100,105 ---- PyObject *PyLong_FromTwoInts(int hidword, unsigned lodword) { ! // If it fits in a normal Python int, we return one of them. ! if (hidword==0 && (lodword & 0x8000==0)) return PyInt_FromLong(lodword); else { |