diff options
| author | nyamatongwe <devnull@localhost> | 2012-05-08 22:29:25 +1000 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2012-05-08 22:29:25 +1000 |
| commit | 5fc09a64044ae35edd1183334ac95a234e3b5a04 (patch) | |
| tree | c5df8d1e8d8a24205b088e97e98d020b9e672fd0 /gtk/ScintillaGTK.cxx | |
| parent | 487ca54326e6aa9fb016a21e625c609e45e2bb54 (diff) | |
| download | scintilla-mirror-5fc09a64044ae35edd1183334ac95a234e3b5a04.tar.gz | |
Add some casts to avoid narrowing warnings from g++ 4.7.
Diffstat (limited to 'gtk/ScintillaGTK.cxx')
| -rw-r--r-- | gtk/ScintillaGTK.cxx | 4 |
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; } |
