From a3a1c8c94acdbffa44bc4f05715d9bc5264097a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20H=C3=A9nin?= Date: Wed, 4 Sep 2024 16:00:01 +0200 Subject: [PATCH] Fix wrong use or return val as error code in test init_atom() does not return an error code --- tests/functional/run_colvars_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/functional/run_colvars_test.cpp b/tests/functional/run_colvars_test.cpp index 07b05f94b..5cee99a56 100644 --- a/tests/functional/run_colvars_test.cpp +++ b/tests/functional/run_colvars_test.cpp @@ -36,7 +36,7 @@ extern "C" int main(int argc, char *argv[]) { cvm::log("Reading trajectory for " + cvm::to_str(natoms) + " atoms from XYZ file " + argv[2]); for (int ai = 0; ai < natoms; ai++) { - err |= proxy->init_atom(ai+1); + proxy->init_atom(ai+1); } int io_err = 0; while (!io_err) {