[client,common] fix integer narrow

This commit is contained in:
akallabeth 2024-09-25 03:30:40 +02:00
parent 3a2a65bbed
commit 6c25607c76
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -46,7 +46,10 @@ static INLINE BOOL testcase(const char* name, char** argv, size_t argc, int expe
int status = 0;
BOOL valid_settings = TRUE;
rdpSettings* settings = freerdp_settings_new(0);
print_test_title(argc, argv);
WINPR_ASSERT(argc <= INT_MAX);
print_test_title((int)argc, argv);
if (!settings)
{
@ -54,7 +57,7 @@ static INLINE BOOL testcase(const char* name, char** argv, size_t argc, int expe
return FALSE;
}
status = freerdp_client_settings_parse_command_line(settings, argc, argv, FALSE);
status = freerdp_client_settings_parse_command_line(settings, (int)argc, argv, FALSE);
if (validate_settings)
{