Skip to content

Commit 87ebf19

Browse files
committed
pbio/os: Add parenthesis to allow assignment expression.
This was naturally included in the UNTIL case but it was missing from the WHILE case.
1 parent d81b5dc commit 87ebf19

File tree

1 file changed

+1
-1
lines changed
  • lib/pbio/include/pbio

1 file changed

+1
-1
lines changed

lib/pbio/include/pbio/os.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ struct _pbio_os_process_t {
194194
#define PBIO_OS_AWAIT_WHILE(state, condition) \
195195
do { \
196196
PBIO_OS_ASYNC_SET_CHECKPOINT(state); \
197-
if (condition) { \
197+
if ((condition)) { \
198198
return PBIO_ERROR_AGAIN; \
199199
} \
200200
} while (0)

0 commit comments

Comments
 (0)