aboutsummaryrefslogtreecommitdiff
path: root/tests/validation/Validation.h
diff options
context:
space:
mode:
authorIsabella Gottardi <isabella.gottardi@arm.com>2018-03-12 13:26:28 +0000
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:49:16 +0000
commit8df6c452820719d201ee79596cde8445c2071db5 (patch)
tree2ba1e801dd3d7390a88d158d300f3bbe6a43e248 /tests/validation/Validation.h
parent9280c9204a09f5f5bc69a150aea441684978d9f1 (diff)
downloadComputeLibrary-8df6c452820719d201ee79596cde8445c2071db5.tar.gz
COMPMID-959: Fix compare Relative Tolerance
Change-Id: I1eea8677e7074ea5aaf7548a6e285265c3499b80 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/124136 Tested-by: Jenkins <bsgcomp@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'tests/validation/Validation.h')
-rw-r--r--tests/validation/Validation.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/validation/Validation.h b/tests/validation/Validation.h
index 506318018d..b5f3a4a57a 100644
--- a/tests/validation/Validation.h
+++ b/tests/validation/Validation.h
@@ -310,7 +310,7 @@ struct compare<RelativeTolerance<U>> : public compare_base<RelativeTolerance<U>>
return false;
}
- const double relative_change = std::abs(static_cast<double>(this->_target) - static_cast<double>(this->_reference)) / this->_reference;
+ const double relative_change = std::abs((static_cast<double>(this->_target) - static_cast<double>(this->_reference)) / this->_reference);
return relative_change <= static_cast<U>(this->_tolerance);
}