Skip to content

Commit 9824813

Browse files
committed
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.
1 parent 9cffe0e commit 9824813

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_backend_agg.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ agg::rect_i RendererAgg::get_content_extents()
201201
}
202202
}
203203

204-
if (r.x1 == width && r.x2 == 0) {
204+
if (r.x1 == (int)width && r.x2 == 0) {
205205
// The buffer is completely empty.
206206
r.x1 = r.y1 = r.x2 = r.y2 = 0;
207207
} else {

0 commit comments

Comments
 (0)