From: Gianfranco Costamagna Date: Tue, 13 Sep 2022 00:46:21 +0000 (+0100) Subject: fix tautological enum compare warnings when built with clang 9 X-Git-Tag: archive/raspbian/7.0_repack-10+rpi1~2^2^2^2~12 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a3574f3f32c3c2d6faf967e19a862fb29beaa4e2;p=wine.git fix tautological enum compare warnings when built with clang 9 Forwarded: pending Last-Update: 2019-12-31 Gbp-Pq: Topic arm64 Gbp-Pq: Name tautological-compare.patch --- diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index 65cdf96..1684b1c 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -6972,8 +6972,8 @@ GpStatus WINGDIPAPI GdipTransformPoints(GpGraphics *graphics, GpCoordinateSpace GpCoordinateSpace src_space, GpPointF *points, INT count) { if(!graphics || !points || count <= 0 || - dst_space < 0 || dst_space > CoordinateSpaceDevice || - src_space < 0 || src_space > CoordinateSpaceDevice) + dst_space > CoordinateSpaceDevice || + src_space > CoordinateSpaceDevice) return InvalidParameter; if(graphics->busy)