Skip to content

Commit 689dee3

Browse files
authored
Fix warnings in iOS Cross Compile CI (#733)
1 parent d8c88fe commit 689dee3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/darwin/nw_socket.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ static void s_setup_tcp_options(nw_protocol_options_t tcp_options, const struct
526526
}
527527

528528
if (g_aws_channel_max_fragment_size < KB_16) {
529-
nw_tcp_options_set_maximum_segment_size(tcp_options, g_aws_channel_max_fragment_size);
529+
nw_tcp_options_set_maximum_segment_size(tcp_options, (uint32_t)g_aws_channel_max_fragment_size);
530530
}
531531
}
532532

@@ -625,7 +625,7 @@ static void s_tls_verification_block(
625625
} else {
626626
char description_buffer[256];
627627
s_get_error_description(error, description_buffer, sizeof(description_buffer));
628-
int crt_error_code = s_determine_socket_error(CFErrorGetCode(error));
628+
int crt_error_code = s_determine_socket_error((int)CFErrorGetCode(error));
629629
AWS_LOGF_DEBUG(
630630
AWS_LS_IO_TLS,
631631
"nw_socket=%p: nw_socket SecTrustEvaluateWithError failed with crt error code: %d : %s translated from CF "

0 commit comments

Comments
 (0)