From 33648bbf313ba73af7e794d7fdfd0bcb58981745 Mon Sep 17 00:00:00 2001 From: prangana Date: Thu, 21 Nov 2019 15:57:41 +0530 Subject: [PATCH] CPP Test comparison util function fix Change-Id: I6a9769efcef5f313eb318921275d37353df2b127 --- testcpp/test.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testcpp/test.hh b/testcpp/test.hh index 23b36d0d5..b1be412d6 100644 --- a/testcpp/test.hh +++ b/testcpp/test.hh @@ -162,7 +162,7 @@ int computeErrorM( int i; int ret = 0; for ( i = 0; i < n; i ++ ) { - if ( (fabs( Y[ i ]) - fabs(Y_ref[ i ] ) ) > 0.00001) { + if ( (fabs( Y_ref[ i ]) - fabs(Y[ i ] ) ) > 0.00001) { cout << Y[i] << Y_ref[i]; ret = 1; break;