aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ScintillaBase.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2000-04-07 12:04:36 +0000
committernyamatongwe <devnull@localhost>2000-04-07 12:04:36 +0000
commit9785733416ef26d325802b81692f6fdc3506be55 (patch)
tree337dc33f1d022c7a460caf1e607bac12fe6e7b61 /src/ScintillaBase.cxx
parent8cb3d80031a74c832b8a006562a9ef010f2cbe5e (diff)
downloadscintilla-mirror-9785733416ef26d325802b81692f6fdc3506be55.tar.gz
Changing code to ensure no warnings are produced by compilers.
Diffstat (limited to 'src/ScintillaBase.cxx')
-rw-r--r--src/ScintillaBase.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx
index ce8883bc3..6683c0146 100644
--- a/src/ScintillaBase.cxx
+++ b/src/ScintillaBase.cxx
@@ -387,7 +387,7 @@ LRESULT ScintillaBase::WndProc(UINT iMessage, WPARAM wParam, LPARAM lParam) {
break;
case SCI_SETKEYWORDS:
- if ((wParam >= 0) && (wParam < numWordLists)) {
+ if (wParam < numWordLists) {
keyWordLists[wParam]->Clear();
keyWordLists[wParam]->Set(reinterpret_cast<const char *>(lParam));
}