diff options
-rw-r--r-- | win32/PlatWin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 70f0faa1b..8b7373cc5 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -558,7 +558,7 @@ void SurfaceImpl::MeasureWidths(Font &font_, const char *s, int len, int *positi int ui=0; const unsigned char *us = reinterpret_cast<const unsigned char *>(s); int i=0; - while (i<fit) { + while (ui<fit) { unsigned char uch = us[i]; positions[i++] = poses[ui]; if (uch >= 0x80) { |