mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[client,common] fix integer narrow
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user