Skip to content

Commit e25d976

Browse files
author
Bret Ambrose
committed
Windows warning
1 parent d966f44 commit e25d976

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/connection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ static const uint32_t MAX_STREAM_ID = UINT32_MAX >> 1;
850850

851851
uint32_t aws_http_connection_get_next_stream_id(struct aws_http_connection *connection) {
852852

853-
uint32_t next_id = aws_atomic_fetch_add(&connection->next_stream_id, 2);
853+
uint32_t next_id = (uint32_t)aws_atomic_fetch_add(&connection->next_stream_id, 2);
854854
/* If next fetch would overflow next_stream_id, set it to 0 */
855855
if (AWS_UNLIKELY(next_id > MAX_STREAM_ID)) {
856856
AWS_LOGF_INFO(AWS_LS_HTTP_CONNECTION, "id=%p: All available stream ids are gone", (void *)connection);

0 commit comments

Comments
 (0)