We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d966f44 commit e25d976Copy full SHA for e25d976
source/connection.c
@@ -850,7 +850,7 @@ static const uint32_t MAX_STREAM_ID = UINT32_MAX >> 1;
850
851
uint32_t aws_http_connection_get_next_stream_id(struct aws_http_connection *connection) {
852
853
- uint32_t next_id = aws_atomic_fetch_add(&connection->next_stream_id, 2);
+ uint32_t next_id = (uint32_t)aws_atomic_fetch_add(&connection->next_stream_id, 2);
854
/* If next fetch would overflow next_stream_id, set it to 0 */
855
if (AWS_UNLIKELY(next_id > MAX_STREAM_ID)) {
856
AWS_LOGF_INFO(AWS_LS_HTTP_CONNECTION, "id=%p: All available stream ids are gone", (void *)connection);
0 commit comments