plugins: Fix -Wsign-compare on Linux

This commit is contained in:
tytan652 2022-08-14 11:17:49 +02:00 committed by Ryan Foster
parent b0c1c9c86c
commit 2839837ed6
2 changed files with 2 additions and 2 deletions

View file

@ -367,7 +367,7 @@ static bool xshm_server_changed(obs_properties_t *props, obs_property_t *p,
if (name == NULL) {
int ret = snprintf(name_tmp, sizeof(name_tmp),
"%" PRIuFAST32, i);
if (ret >= sizeof(name_tmp))
if (ret >= (int)sizeof(name_tmp))
blog(LOG_DEBUG,
"linux-capture: A format truncation may have occurred."
" This can be ignored since it is quite improbable.");

View file

@ -419,7 +419,7 @@ static void v4l2_device_list(obs_property_t *prop, obs_data_t *settings)
int ret = snprintf(unique_device_name,
sizeof(unique_device_name), "%s (%s)",
video_cap.card, video_cap.bus_info);
if (ret >= sizeof(unique_device_name))
if (ret >= (int)sizeof(unique_device_name))
blog(LOG_DEBUG,
"linux-v4l2: A format truncation may have occurred."
" This can be ignored since it is quite improbable.");