aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/PlatGTK.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/PlatGTK.cxx')
-rw-r--r--gtk/PlatGTK.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx
index d5183e02b..a1e480030 100644
--- a/gtk/PlatGTK.cxx
+++ b/gtk/PlatGTK.cxx
@@ -254,7 +254,7 @@ void Surface::Polygon(Point *pts, int npts, Colour fore,
// Nasty casts works because Point is exactly same as GdkPoint
// Oh no it doesn't...
GdkPoint gpts[20];
- if (npts < (sizeof(gpts)/sizeof(gpts[0]))) {
+ if (npts < static_cast<int>((sizeof(gpts)/sizeof(gpts[0])))) {
for (int i=0;i<npts;i++) {
gpts[i].x = pts[i].x;
gpts[i].y = pts[i].y;