mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 08:16:21 +02:00
fix QCOMPARE_WITH_ABS_ERROR for floats
This commit is contained in:
parent
6db47e773f
commit
4a8baafdd2
1 changed files with 6 additions and 6 deletions
|
@ -168,7 +168,7 @@ bool QTest_compareWithAbsError(
|
|||
int line, const char* file,
|
||||
const V& epsilon
|
||||
) {
|
||||
if (abs(getErrorDifference(actual, expected)) > abs(epsilon)) {
|
||||
if (fabsf(getErrorDifference(actual, expected)) > fabsf(epsilon)) {
|
||||
QTest_failWithMessage(
|
||||
"Compared values are not the same (fuzzy compare)",
|
||||
actual, expected, actual_expr, expected_expr, line, file,
|
||||
|
|
Loading…
Reference in a new issue