gdi32: Remove double parantheses, not a misplaced pair (PVS-Studio)
Michael Stefaniuc
mstefani at redhat.de
Fri Mar 6 02:58:11 CST 2015
---
PVS-Studio complains just about 9 double parantheses so we might as well
remove the more obvious ones like this one.
dlls/gdi32/dibdrv/objects.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/gdi32/dibdrv/objects.c b/dlls/gdi32/dibdrv/objects.c
index bc8b60d..f954def 100644
--- a/dlls/gdi32/dibdrv/objects.c
+++ b/dlls/gdi32/dibdrv/objects.c
@@ -1307,8 +1307,8 @@ static HRGN create_miter_region( dibdrv_physdev *pdev, const POINT *pt,
pt_1 = face_1->start;
pt_2 = face_2->end;
- a = (double)((pt_2.x * face_2->dy - pt_2.y * face_2->dx)) / det;
- b = (double)((pt_1.x * face_1->dy - pt_1.y * face_1->dx)) / det;
+ a = (double)(pt_2.x * face_2->dy - pt_2.y * face_2->dx) / det;
+ b = (double)(pt_1.x * face_1->dy - pt_1.y * face_1->dx) / det;
x = a * face_1->dx - b * face_2->dx;
y = a * face_1->dy - b * face_2->dy;
--
1.9.3
More information about the wine-patches
mailing list