ddraw: Fix comparefloat() so it compiles with Visual C++ when given
a negative value.
Francois Gouget
fgouget at free.fr
Fri Sep 29 05:51:58 CDT 2006
---
dlls/ddraw/tests/d3d.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ddraw/tests/d3d.c b/dlls/ddraw/tests/d3d.c
index 0409dce..8b0aee5 100644
--- a/dlls/ddraw/tests/d3d.c
+++ b/dlls/ddraw/tests/d3d.c
@@ -34,7 +34,7 @@ static LPDIRECT3DVERTEXBUFFER7 lpVBufDes
/* To compare bad floating point numbers. Not the ideal way to do it,
* but it should be enough for here */
-#define comparefloat(a, b) ( ((a - b) < 0.0001) && ((a-b) > -0.0001) )
+#define comparefloat(a, b) ( (((a) - (b)) < 0.0001) && (((a) - (b)) > -0.0001) )
static HRESULT (WINAPI *pDirectDrawCreateEx)(LPGUID,LPVOID*,REFIID,LPUNKNOWN);
--
1.4.1.1
More information about the wine-patches
mailing list