From 6bbf1635dbdd6bee83202593b9f9a27e58a2a2e1 Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 19 Nov 2023 09:16:26 +1100 Subject: Avoid warnings for static_cast and potential overflow. --- src/CallTip.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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(ytext - ascent - 1); + const int top = ytext - ascent - 1; + rcClient.top = top; int x = insetX; // start each line at this inset -- cgit v1.2.3