aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/ScintillaGTK.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2012-05-08 22:29:25 +1000
committernyamatongwe <unknown>2012-05-08 22:29:25 +1000
commitc69335b78e70e68112637044ddaa3e3213a20576 (patch)
treebd8c84b17d7fb7a537db6b97826e3c674831665f /gtk/ScintillaGTK.cxx
parent40e1626cac33af0369375896dee2a7e61213eb89 (diff)
downloadscintilla-mirror-c69335b78e70e68112637044ddaa3e3213a20576.tar.gz
Add some casts to avoid narrowing warnings from g++ 4.7.
Diffstat (limited to 'gtk/ScintillaGTK.cxx')
-rw-r--r--gtk/ScintillaGTK.cxx4
1 files changed, 2 insertions, 2 deletions
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<gint>(rc.left), static_cast<gint>(rc.top),
+ static_cast<gint>(rc.right - rc.left), static_cast<gint>(rc.bottom - rc.top)};
if (gdk_region_rect_in(rgnUpdate, &grc) != GDK_OVERLAP_RECTANGLE_IN) {
contains = false;
}