[pywin32-checkins] pywin32/Pythonwin win32util.cpp,1.11,1.12
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2007-10-20 05:23:13
|
Update of /cvsroot/pywin32/pywin32/Pythonwin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12008/Pythonwin Modified Files: win32util.cpp Log Message: avoid warning as strlen returns size_t, not ssize_t Index: win32util.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/Pythonwin/win32util.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** win32util.cpp 13 Jul 2007 03:03:27 -0000 1.11 --- win32util.cpp 20 Oct 2007 05:23:14 -0000 1.12 *************** *** 422,426 **** pItem->mask |= LVIF_TEXT; pItem->pszText = PyString_AsString(ob); ! pItem->cchTextMax = PyWin_SAFE_DOWNCAST(strlen(pItem->pszText)+1, ssize_t, int); } if (len<6) return TRUE; --- 422,426 ---- pItem->mask |= LVIF_TEXT; pItem->pszText = PyString_AsString(ob); ! pItem->cchTextMax = PyWin_SAFE_DOWNCAST(strlen(pItem->pszText)+1, size_t, int); } if (len<6) return TRUE; *************** *** 522,526 **** pItem->mask |= LVCF_TEXT; pItem->pszText = PyString_AsString(ob); ! pItem->cchTextMax = PyWin_SAFE_DOWNCAST(strlen(pItem->pszText)+1, ssize_t, int); } // 3 - subitem --- 522,526 ---- pItem->mask |= LVCF_TEXT; pItem->pszText = PyString_AsString(ob); ! pItem->cchTextMax = PyWin_SAFE_DOWNCAST(strlen(pItem->pszText)+1, size_t, int); } // 3 - subitem *************** *** 656,660 **** pItem->mask |= TVIF_TEXT; pItem->pszText = PyString_AsString(ob); ! pItem->cchTextMax = PyWin_SAFE_DOWNCAST(strlen(pItem->pszText)+1, ssize_t, int); } // 4 - image --- 656,660 ---- pItem->mask |= TVIF_TEXT; pItem->pszText = PyString_AsString(ob); ! pItem->cchTextMax = PyWin_SAFE_DOWNCAST(strlen(pItem->pszText)+1, size_t, int); } // 4 - image *************** *** 801,805 **** pItem->pszText = PyString_AsString(ob); if (PyErr_Occurred()) return FALSE; ! pItem->cchTextMax = PyWin_SAFE_DOWNCAST(strlen(pItem->pszText)+1, ssize_t, int); pItem->mask |= HDI_TEXT; } --- 801,805 ---- pItem->pszText = PyString_AsString(ob); if (PyErr_Occurred()) return FALSE; ! pItem->cchTextMax = PyWin_SAFE_DOWNCAST(strlen(pItem->pszText)+1, size_t, int); pItem->mask |= HDI_TEXT; } |