From 29811496ab936b978e21f135dc67e4be192aa28c Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 19 Oct 2014 17:54:02 +1100 Subject: Avoid warning about assiging pointer to integer. --- gtk/PlatGTK.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk/PlatGTK.cxx') diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index c1d7ac7ae..1445ac130 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -708,7 +708,7 @@ void SurfaceImpl::FillRectangle(PRectangle rc, ColourDesired back) { void SurfaceImpl::FillRectangle(PRectangle rc, Surface &surfacePattern) { SurfaceImpl &surfi = static_cast(surfacePattern); - bool canDraw = surfi.psurf; + bool canDraw = surfi.psurf != NULL; if (canDraw) { PLATFORM_ASSERT(context); // Tile pattern over rectangle @@ -842,7 +842,7 @@ void SurfaceImpl::Ellipse(PRectangle rc, ColourDesired fore, ColourDesired back) void SurfaceImpl::Copy(PRectangle rc, Point from, Surface &surfaceSource) { SurfaceImpl &surfi = static_cast(surfaceSource); - bool canDraw = surfi.psurf; + bool canDraw = surfi.psurf != NULL; if (canDraw) { PLATFORM_ASSERT(context); cairo_set_source_surface(context, surfi.psurf, -- cgit v1.2.3