diff options
author | nyamatongwe <unknown> | 2000-04-07 12:14:52 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2000-04-07 12:14:52 +0000 |
commit | 8b68892120dcfd53befc0dc8e8e16353af711a11 (patch) | |
tree | 51f5b2a345cab9af83bf566a47900b18fe305295 /win32/PlatWin.cxx | |
parent | 2b655a29a4e4d7e343884b85742aed8a033b6eef (diff) | |
download | scintilla-mirror-8b68892120dcfd53befc0dc8e8e16353af711a11.tar.gz |
Changing code to ensure no warnings are produced by compilers.
Diffstat (limited to 'win32/PlatWin.cxx')
-rw-r--r-- | win32/PlatWin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 7ce9930e4..eb81b8fa2 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -293,7 +293,7 @@ void Surface::FillRectangle(PRectangle rc, Colour back) { } void Surface::FillRectangle(PRectangle rc, Surface &surfacePattern) { - HBRUSH br = 0; + HBRUSH br; if (surfacePattern.bitmap) br = ::CreatePatternBrush(surfacePattern.bitmap); else // Something is wrong so display in red @@ -330,7 +330,7 @@ int UCS2FromUTF8(const char *s, int len, wchar_t *tbuf, int tlen) { int ui=0; const unsigned char *us = reinterpret_cast<const unsigned char *>(s); int i=0; - while (i<len) { + while ((i<len) && (ui<tlen)) { unsigned char ch = us[i++]; if (ch < 0x80) { tbuf[ui] = ch; |