Module: wine Branch: master Commit: ceb06a2f00040d5a91469b0acf6e83dcf3a49d88 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=ceb06a2f00040d5a91469b0a...
Author: Francois Gouget fgouget@free.fr Date: Fri Sep 29 12:51:58 2006 +0200
ddraw: Fix comparefloat() so it compiles with Visual C++ when given a negative value.
---
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..55dc772 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);