dwrite/tests: Use fabs for floating point numbers (clang).

Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
André Hentschel 2018-03-27 18:54:47 +02:00 committed by Alexandre Julliard
parent 35bd57ec5e
commit 383fbf04cf
1 changed files with 1 additions and 1 deletions

View File

@ -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);