summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2021-09-03 15:56:45 -0700
committerVito Caputo <vcaputo@pengaru.com>2021-09-03 15:56:45 -0700
commitb738afd078da5972bc9cfce2bc51f91653874164 (patch)
treef1586348fc67c47c738b3a4691628398af8d54d8
parentb8ed34e910db12f58e9677af5c59891bba55707b (diff)
thunk: add some parens around truth valuesHEADmaster
Silencing some gcc warnings...
-rw-r--r--thunk.h4
1 files 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; \
} \
© All Rights Reserved