From 8f2c177f2db1d14bda835495c0af4db9578c8aac Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Mon, 23 Apr 2012 17:30:53 +0200 Subject: [PATCH 1/1] add some parenthesis around a truth value, as suggested by eclipse --- src/jxbt_utilities.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jxbt_utilities.h b/src/jxbt_utilities.h index dc06f1bca8..3b0bb4f468 100644 --- a/src/jxbt_utilities.h +++ b/src/jxbt_utilities.h @@ -53,7 +53,7 @@ jfieldID jxbt_get_sfield(JNIEnv * env, const char *classname, /* ***************** */ #define jxbt_check_res(fun, res, allowed_exceptions, detail) do {\ - if (res != MSG_OK && res | allowed_exceptions) { \ + if (res != MSG_OK && (res | allowed_exceptions)) { \ xbt_die("%s failed with error code %d, which is not an allowed exception. Please fix me.",fun,res); \ } else if (res == MSG_HOST_FAILURE) { \ jxbt_throw_host_failure(env, detail); \ -- 2.20.1