Module: wine Branch: master Commit: 24186d42dae5f34c278895b6353ea8af7f376577 URL: http://source.winehq.org/git/wine.git/?a=commit;h=24186d42dae5f34c278895b635...
Author: Gerald Pfeifer gerald@pfeifer.com Date: Wed Nov 28 23:18:12 2007 +0100
gdi32: Fix the type of two loop variables.
---
dlls/gdi32/font.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/gdi32/font.c b/dlls/gdi32/font.c index 3b6ec3b..1b80df1 100644 --- a/dlls/gdi32/font.c +++ b/dlls/gdi32/font.c @@ -2128,7 +2128,8 @@ BOOL WINAPI ExtTextOutW( HDC hdc, INT x, INT y, UINT flags, { HFONT orig_font = dc->hFont, cur_font; UINT glyph; - INT span = 0, *offsets = NULL, i; + INT span = 0, *offsets = NULL; + unsigned int i;
glyphs = HeapAlloc(GetProcessHeap(), 0, count * sizeof(WORD)); for(i = 0; i < count; i++) @@ -2138,7 +2139,7 @@ BOOL WINAPI ExtTextOutW( HDC hdc, INT x, INT y, UINT flags, { if(!offsets) { - int j; + unsigned int j; offsets = HeapAlloc(GetProcessHeap(), 0, count * sizeof(*deltas)); offsets[0] = 0; if(!deltas)