Skip to content

Commit acc8269

Browse files
committed
poll: fix raw event check
1 parent a92f9ba commit acc8269

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/poll/poll_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ static php_poll_ctx *php_poll_create_context(uint32_t flags)
107107
return NULL;
108108
}
109109
ctx->persistent = persistent;
110-
ctx->raw_events = flags & PHP_POLL_FLAG_RAW_EVENTS;
110+
ctx->raw_events = (flags & PHP_POLL_FLAG_RAW_EVENTS) != 0;
111111

112112
return ctx;
113113
}

0 commit comments

Comments
 (0)