msctf: Avoid signed-unsigned integer comparisons.

This commit is contained in:
Andrew Talbot 2013-02-13 21:06:41 +00:00 committed by Alexandre Julliard
parent 78d9ee8a1a
commit 1a1577d791
4 changed files with 8 additions and 8 deletions

View file

@ -241,7 +241,7 @@ static HRESULT WINAPI CategoryMgr_FindClosestCategory ( ITfCategoryMgr *iface,
if (ulCount) if (ulCount)
{ {
int j; ULONG j;
BOOL found = FALSE; BOOL found = FALSE;
for (j = 0; j < ulCount; j++) for (j = 0; j < ulCount; j++)
if (IsEqualGUID(&guid, ppcatidList[j])) if (IsEqualGUID(&guid, ppcatidList[j]))

View file

@ -369,7 +369,7 @@ static HRESULT WINAPI Context_SetSelection (ITfContext *iface,
{ {
TS_SELECTION_ACP *acp; TS_SELECTION_ACP *acp;
Context *This = (Context *)iface; Context *This = (Context *)iface;
INT i; ULONG i;
HRESULT hr; HRESULT hr;
TRACE("(%p) %i %i %p\n",This,ec,ulCount,pSelection); TRACE("(%p) %i %i %p\n",This,ec,ulCount,pSelection);

View file

@ -198,7 +198,7 @@ static HRESULT ClassFactory_Constructor(LPFNCONSTRUCTOR ctor, LPVOID *ppvOut)
*/ */
DWORD generate_Cookie(DWORD magic, LPVOID data) DWORD generate_Cookie(DWORD magic, LPVOID data)
{ {
int i; UINT i;
/* try to reuse IDs if possible */ /* try to reuse IDs if possible */
for (i = 0; i < id_last; i++) for (i = 0; i < id_last; i++)
@ -282,7 +282,7 @@ LPVOID remove_Cookie(DWORD id)
DWORD enumerate_Cookie(DWORD magic, DWORD *index) DWORD enumerate_Cookie(DWORD magic, DWORD *index)
{ {
int i; unsigned int i;
for (i = *index; i < id_last; i++) for (i = *index; i < id_last; i++)
if (cookies[i].id != 0 && cookies[i].magic == magic) if (cookies[i].id != 0 && cookies[i].magic == magic)
{ {
@ -614,12 +614,12 @@ HRESULT WINAPI SetInputScopes(HWND hwnd, const INT *pInputScopes,
UINT cInputScopes, WCHAR **ppszPhraseList, UINT cInputScopes, WCHAR **ppszPhraseList,
UINT cPhrases, WCHAR *pszRegExp, WCHAR *pszSRGS) UINT cPhrases, WCHAR *pszRegExp, WCHAR *pszSRGS)
{ {
int i; UINT i;
FIXME("STUB: %p ... %s %s\n",hwnd, debugstr_w(pszRegExp), debugstr_w(pszSRGS)); FIXME("STUB: %p ... %s %s\n",hwnd, debugstr_w(pszRegExp), debugstr_w(pszSRGS));
for (i = 0; i < cInputScopes; i++) for (i = 0; i < cInputScopes; i++)
TRACE("\tScope[%i] = %i\n",i,pInputScopes[i]); TRACE("\tScope[%u] = %i\n",i,pInputScopes[i]);
for (i = 0; i < cPhrases; i++) for (i = 0; i < cPhrases; i++)
TRACE("\tPhrase[%i] = %s\n",i,debugstr_w(ppszPhraseList[i])); TRACE("\tPhrase[%u] = %s\n",i,debugstr_w(ppszPhraseList[i]));
return S_OK; return S_OK;
} }

View file

@ -1392,7 +1392,7 @@ static HRESULT WINAPI EnumTfDocumentMgr_Next(IEnumTfDocumentMgrs *iface,
static HRESULT WINAPI EnumTfDocumentMgr_Skip( IEnumTfDocumentMgrs* iface, ULONG celt) static HRESULT WINAPI EnumTfDocumentMgr_Skip( IEnumTfDocumentMgrs* iface, ULONG celt)
{ {
INT i; ULONG i;
EnumTfDocumentMgr *This = (EnumTfDocumentMgr *)iface; EnumTfDocumentMgr *This = (EnumTfDocumentMgr *)iface;
TRACE("(%p)\n",This); TRACE("(%p)\n",This);
for(i = 0; i < celt && This->index != NULL; i++) for(i = 0; i < celt && This->index != NULL; i++)