From b738afd078da5972bc9cfce2bc51f91653874164 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Fri, 3 Sep 2021 15:56:45 -0700 Subject: thunk: add some parens around truth values Silencing some gcc warnings... --- thunk.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thunk.h b/thunk.h index dc44055..41652e3 100644 --- a/thunk.h +++ b/thunk.h @@ -484,7 +484,7 @@ struct thunk_t { /* allocate and initialize environment, return it */ \ __thunk_environment_##_name *env; \ \ - while (env = __thunk_environment_cache_##_name) { \ + while ((env = __thunk_environment_cache_##_name)) { \ if (__sync_bool_compare_and_swap(&__thunk_environment_cache_##_name, env, env->next_free))\ break; \ } \ @@ -586,7 +586,7 @@ struct thunk_t { /* allocate and populate environment, return it */ \ __thunk_environment_##_name *env; \ \ - while (env = __thunk_environment_cache_##_name) { \ + while ((env = __thunk_environment_cache_##_name)) { \ if (__sync_bool_compare_and_swap(&__thunk_environment_cache_##_name, env, env->next_free))\ break; \ } \ -- cgit v1.2.3