diff options
author | Neil <nyamatongwe@gmail.com> | 2023-11-19 09:16:26 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2023-11-19 09:16:26 +1100 |
commit | 6bbf1635dbdd6bee83202593b9f9a27e58a2a2e1 (patch) | |
tree | 252e8464930bdcaddb026b880f75dbf39e753e7c | |
parent | 762e8ca837a435831f5e31a65ca1772ee588540e (diff) | |
download | scintilla-mirror-6bbf1635dbdd6bee83202593b9f9a27e58a2a2e1.tar.gz |
Avoid warnings for static_cast and potential overflow.
-rw-r--r-- | src/CallTip.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/CallTip.cxx b/src/CallTip.cxx index db62c4ed1..a41ba9519 100644 --- a/src/CallTip.cxx +++ b/src/CallTip.cxx @@ -228,7 +228,8 @@ int CallTip::PaintContents(Surface *surfaceWindow, bool draw) { chunkHighlight.start -= lineStart; chunkHighlight.end -= lineStart; - rcClient.top = static_cast<XYPOSITION>(ytext - ascent - 1); + const int top = ytext - ascent - 1; + rcClient.top = top; int x = insetX; // start each line at this inset |