Skip to content

Commit 1b86b6c

Browse files
JonathanHensonJustin Boswell
authored and
Justin Boswell
committed
Either turn off WConversion or quit pushing stuff that won't frickin compile./format-check.sh ./format-check.sh (#43)
1 parent e2deb73 commit 1b86b6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_websocket_encoder.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ ENCODER_TEST_CASE(websocket_encoder_rsv) {
155155
0x89, // fin | rsv1 | rsv2 | rsv3 | 4bit opcode
156156
0x00, // mask | 7bit payload len
157157
};
158-
expected_output[0] |= (uint8_t)(1 << (6 - rsv));
158+
expected_output[0] = (uint8_t)(expected_output[0] | (1 << (6 - (uint8_t)rsv)));
159159

160160
tester.out_buf.len = 0; /* reset output buffer */
161161
ASSERT_SUCCESS(aws_websocket_encoder_start_frame(&tester.encoder, &input_frame));

0 commit comments

Comments
 (0)