aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CallTip.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2023-11-19 09:16:26 +1100
committerNeil <nyamatongwe@gmail.com>2023-11-19 09:16:26 +1100
commit6bbf1635dbdd6bee83202593b9f9a27e58a2a2e1 (patch)
tree252e8464930bdcaddb026b880f75dbf39e753e7c /src/CallTip.cxx
parent762e8ca837a435831f5e31a65ca1772ee588540e (diff)
downloadscintilla-mirror-6bbf1635dbdd6bee83202593b9f9a27e58a2a2e1.tar.gz
Avoid warnings for static_cast and potential overflow.
Diffstat (limited to 'src/CallTip.cxx')
-rw-r--r--src/CallTip.cxx3
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