From 982481319c7f33e90d8311c7c9ba4ef821cfb8ab Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Mon, 8 Oct 2018 11:28:02 +0200 Subject: [PATCH] Get rid of a signed-compare warning. rect_i.x1 is signed but width is unsigned. Casting width to signed is consistent with the rest of the code. --- src/_backend_agg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_backend_agg.cpp b/src/_backend_agg.cpp index 04375466d064..a4be9838c313 100644 --- a/src/_backend_agg.cpp +++ b/src/_backend_agg.cpp @@ -201,7 +201,7 @@ agg::rect_i RendererAgg::get_content_extents() } } - if (r.x1 == width && r.x2 == 0) { + if (r.x1 == (int)width && r.x2 == 0) { // The buffer is completely empty. r.x1 = r.y1 = r.x2 = r.y2 = 0; } else {