[pywin32-checkins] pywin32/com/win32com/src PyIDispatch.cpp,1.6,1.7
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: <mha...@us...> - 2003-10-31 09:39:43
|
Update of /cvsroot/pywin32/pywin32/com/win32com/src In directory sc8-pr-cvs1:/tmp/cvs-serv7782 Modified Files: PyIDispatch.cpp Log Message: Cast -1 error/missing value to UINT to prevent compiler warnings. Index: PyIDispatch.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/src/PyIDispatch.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** PyIDispatch.cpp 24 Oct 2003 04:32:43 -0000 1.6 --- PyIDispatch.cpp 31 Oct 2003 09:39:39 -0000 1.7 *************** *** 18,22 **** if ( einfo->scode != DISP_E_TYPEMISMATCH && einfo->scode != DISP_E_PARAMNOTFOUND ) ! nArgErr = -1; else nArgErr = cArgs - nArgErr; /* convert to usable index */ --- 18,22 ---- if ( einfo->scode != DISP_E_TYPEMISMATCH && einfo->scode != DISP_E_PARAMNOTFOUND ) ! nArgErr = (UINT)-1; else nArgErr = cArgs - nArgErr; /* convert to usable index */ *************** *** 28,32 **** { if ( hr != DISP_E_TYPEMISMATCH && hr != DISP_E_PARAMNOTFOUND ) ! nArgErr = -1; else nArgErr = cArgs - nArgErr; /* convert to usable index */ --- 28,32 ---- { if ( hr != DISP_E_TYPEMISMATCH && hr != DISP_E_PARAMNOTFOUND ) ! nArgErr =(UINT)-1; else nArgErr = cArgs - nArgErr; /* convert to usable index */ *************** *** 618,622 **** PyCom_FreeUntypedDISPPARAMS(&dispparams); ! if ( HandledDispatchFailure(hr, &excepInfo, -1, dispparams.cArgs) ) { if ( pVarResultUse ) --- 618,622 ---- PyCom_FreeUntypedDISPPARAMS(&dispparams); ! if ( HandledDispatchFailure(hr, &excepInfo, (UINT)-1, dispparams.cArgs) ) { if ( pVarResultUse ) |