Skip to content

Commit 278c671

Browse files
fe-dagostinolws-team
authored andcommitted
lws_write_protocol: type munging
1 parent 8d410bf commit 278c671

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/libwebsockets/lws-write.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ lws_write_ws_flags(int initial, int is_start, int is_end)
235235
r = LWS_WRITE_CONTINUATION;
236236

237237
if (!is_end)
238-
r |= LWS_WRITE_NO_FIN;
238+
r = (enum lws_write_protocol)((int)r | (int)LWS_WRITE_NO_FIN);
239239

240240
return r;
241241
}

0 commit comments

Comments
 (0)