[pywin32-checkins] pywin32/com/win32com/src PyRecord.cpp,1.9,1.10 PythonCOM.cpp,1.25,1.26
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: <mha...@us...> - 2003-11-08 02:02:00
|
Update of /cvsroot/pywin32/pywin32/com/win32com/src In directory sc8-pr-cvs1:/tmp/cvs-serv5438 Modified Files: PyRecord.cpp PythonCOM.cpp Log Message: Cast literal -1 to their correct unsigned type to avoid gcc warnings. Index: PyRecord.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/src/PyRecord.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** PyRecord.cpp 20 Oct 2003 04:48:26 -0000 1.9 --- PyRecord.cpp 8 Nov 2003 02:01:55 -0000 1.10 *************** *** 390,394 **** for (i = 0; i < num_names && s != NULL; i++) { char *name; ! if (PyWin_WCHAR_AsString(strings[i], -1, &name)) { if (i > 0) PyString_Concat(&s, comma); --- 390,394 ---- for (i = 0; i < num_names && s != NULL; i++) { char *name; ! if (PyWin_WCHAR_AsString(strings[i], (DWORD)-1, &name)) { if (i > 0) PyString_Concat(&s, comma); *************** *** 444,448 **** PyErr_Clear(); WCHAR *wname; ! if (!PyWin_String_AsWCHAR(name, -1, &wname)) return NULL; --- 444,448 ---- PyErr_Clear(); WCHAR *wname; ! if (!PyWin_String_AsWCHAR(name, (DWORD)-1, &wname)) return NULL; *************** *** 519,523 **** WCHAR *wname; ! if (!PyWin_String_AsWCHAR(name, -1, &wname)) return -1; --- 519,523 ---- WCHAR *wname; ! if (!PyWin_String_AsWCHAR(name, (DWORD)-1, &wname)) return -1; *************** *** 552,556 **** ret = 0; char *name; ! if (PyWin_WCHAR_AsString(strings[i], -1, &name)) { PyObject *self_sub = PyRecord::tp_getattr(self, name); if (self_sub) { --- 552,556 ---- ret = 0; char *name; ! if (PyWin_WCHAR_AsString(strings[i], (DWORD)-1, &name)) { PyObject *self_sub = PyRecord::tp_getattr(self, name); if (self_sub) { Index: PythonCOM.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/src/PythonCOM.cpp,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** PythonCOM.cpp 31 Oct 2003 04:34:36 -0000 1.25 --- PythonCOM.cpp 8 Nov 2003 02:01:55 -0000 1.26 *************** *** 285,289 **** if (obAuthSvc==NULL) ! cAuthSvc = -1; else if (PySequence_Check(obAuthSvc)) { cAuthSvc = 0; --- 285,289 ---- if (obAuthSvc==NULL) ! cAuthSvc = (DWORD)-1; else if (PySequence_Check(obAuthSvc)) { cAuthSvc = 0; |