[pywin32-checkins] pywin32/com/win32com/src/include PythonCOM.h, 1.24, 1.25
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Roger U. <ru...@us...> - 2007-06-03 09:46:38
|
Update of /cvsroot/pywin32/pywin32/com/win32com/src/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12200/com/win32com/src/include Modified Files: PythonCOM.h Log Message: Fix pointer cast to int warning Index: PythonCOM.h =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/src/include/PythonCOM.h,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** PythonCOM.h 14 Mar 2006 12:12:44 -0000 1.24 --- PythonCOM.h 3 Jun 2007 09:46:37 -0000 1.25 *************** *** 199,203 **** virtual int setattr(char *name, PyObject *v); virtual PyObject *repr(); ! virtual int compare(PyObject *other) {return (int)this-int(other);} // These iter are a little special, in that returning NULL means // use the implementation in the type --- 199,209 ---- virtual int setattr(char *name, PyObject *v); virtual PyObject *repr(); ! virtual int compare(PyObject *other) { ! if (this == other) ! return 0; ! if (this < other) ! return -1; ! return 1; ! } // These iter are a little special, in that returning NULL means // use the implementation in the type |