diff options
author | Neil <nyamatongwe@gmail.com> | 2018-04-11 11:27:52 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-04-11 11:27:52 +1000 |
commit | 0ee2ba3229dcd19ccb05194668c8620f5cf7b6d5 (patch) | |
tree | 93c6295854aac95f205e43079fb8350182245035 | |
parent | 5386325b49399a8868909d93b0068a88bcf1d6f6 (diff) | |
download | scintilla-mirror-0ee2ba3229dcd19ccb05194668c8620f5cf7b6d5.tar.gz |
Bug [#2008]. Avoid warning unsigned >= 0.
-rw-r--r-- | win32/ScintillaWin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 0b340a747..b970a7816 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -1747,7 +1747,7 @@ sptr_t ScintillaWin::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam case SCI_SETBIDIRECTIONAL: if (technology == SC_TECHNOLOGY_DEFAULT) { bidirectional = EditModel::Bidirectional::bidiDisabled; - } else if ((wParam >= SC_BIDIRECTIONAL_DISABLED) && (wParam <= SC_BIDIRECTIONAL_R2L)) { + } else if (wParam <= SC_BIDIRECTIONAL_R2L) { bidirectional = static_cast<EditModel::Bidirectional>(wParam); } // Invalidate all cached information including layout. |