Skip to content

Commit

Permalink
Narrowing cast v2
Browse files Browse the repository at this point in the history
  • Loading branch information
bretambrose committed Nov 11, 2024
1 parent 5a3032c commit cfd2b1e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/s3_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,9 @@ struct aws_s3_client *aws_s3_client_new(

/* Set up body streaming ELG */
{
size_t num_event_loops = aws_event_loop_group_get_loop_count(client->client_bootstrap->event_loop_group);
size_t num_streaming_threads = num_event_loops;
uint16_t num_event_loops =
(uint16_t)aws_event_loop_group_get_loop_count(client->client_bootstrap->event_loop_group);
uint16_t num_streaming_threads = num_event_loops;

if (num_streaming_threads < 1) {
num_streaming_threads = 1;
Expand Down

0 comments on commit cfd2b1e

Please sign in to comment.