=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: dwrite/tests: Use fabs for floating point numbers (clang).
Alexandre Julliard
julliard at winehq.org
Wed Mar 28 16:42:43 CDT 2018
Module: wine
Branch: master
Commit: 383fbf04cfc52a57869ef94adc307711d1021081
URL: https://source.winehq.org/git/wine.git/?a=commit;h=383fbf04cfc52a57869ef94adc307711d1021081
Author: André Hentschel <nerv at dawncrow.de>
Date: Tue Mar 27 18:54:47 2018 +0200
dwrite/tests: Use fabs for floating point numbers (clang).
Signed-off-by: André Hentschel <nerv at dawncrow.de>
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dwrite/tests/layout.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/dwrite/tests/layout.c b/dlls/dwrite/tests/layout.c
index 347d750..b54748a 100644
--- a/dlls/dwrite/tests/layout.c
+++ b/dlls/dwrite/tests/layout.c
@@ -635,7 +635,7 @@ static HRESULT WINAPI testrenderer_DrawUnderline(IDWriteTextRenderer *iface,
ok(emsize == metrics.designUnitsPerEm, "Unexpected font size %f\n", emsize);
/* Expected height is in design units, allow some absolute difference from it. Seems to only happen on Vista */
- ok(abs(metrics.capHeight - underline->runHeight) < 2.0f, "Expected runHeight %u, got %f, family %s\n",
+ ok(fabs(metrics.capHeight - underline->runHeight) < 2.0f, "Expected runHeight %u, got %f, family %s\n",
metrics.capHeight, underline->runHeight, wine_dbgstr_w(ctxt->familyW));
IDWriteFontFace_Release(fontface);
More information about the wine-cvs
mailing list