summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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; \
} \
© 2021 All Rights Reserved