aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cmocka.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmocka.c b/src/cmocka.c
index 031e397..76a9b93 100644
--- a/src/cmocka.c
+++ b/src/cmocka.c
@@ -1148,10 +1148,10 @@ static int float_compare(const float left,
absLeft = (left >= 0.f) ? left : -left;
absRight = (right >= 0.f) ? right : -right;
- largest = (absRight > absLeft) ? absRight : absLeft;
+ largest = (absRight > absLeft) ? absRight : absLeft;
relDiff = largest * FLT_EPSILON;
- if (diff > relDiff) {
+ if (diff > relDiff) {
return 0;
}
return 1;