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;