From: Gianfranco Costamagna Date: Sat, 24 Sep 2022 17:29:03 +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~12 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ad3e1d2444bd499d098d97ef37d7b200fccecc43;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)