From c69335b78e70e68112637044ddaa3e3213a20576 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 8 May 2012 22:29:25 +1000 Subject: Add some casts to avoid narrowing warnings from g++ 4.7. --- gtk/ScintillaGTK.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk') diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index dea716c82..a61838923 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -1074,8 +1074,8 @@ bool ScintillaGTK::PaintContains(PRectangle rc) { rc.right - rc.left, rc.bottom - rc.top}; contains = CRectListContains(rgnUpdate, grc); #else - GdkRectangle grc = {rc.left, rc.top, - rc.right - rc.left, rc.bottom - rc.top}; + GdkRectangle grc = {static_cast(rc.left), static_cast(rc.top), + static_cast(rc.right - rc.left), static_cast(rc.bottom - rc.top)}; if (gdk_region_rect_in(rgnUpdate, &grc) != GDK_OVERLAP_RECTANGLE_IN) { contains = false; } -- cgit v1.2.3