mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
libobs: Change int to size_t
The loop increments i towards an unsigned type, so i should also be an unsigned type.
This commit is contained in:
parent
a705030b23
commit
294d32aee0
@ -793,7 +793,7 @@ char *obs_find_data_file(const char *file)
|
||||
if (result)
|
||||
return result;
|
||||
|
||||
for (int i = 0; i < core_module_paths.num; ++i) {
|
||||
for (size_t i = 0; i < core_module_paths.num; ++i) {
|
||||
if (check_path(file, core_module_paths.array[i].array, &path))
|
||||
return path.array;
|
||||
}
|
||||
@ -811,7 +811,7 @@ void obs_add_data_path(const char *path)
|
||||
|
||||
bool obs_remove_data_path(const char *path)
|
||||
{
|
||||
for (int i = 0; i < core_module_paths.num; ++i) {
|
||||
for (size_t i = 0; i < core_module_paths.num; ++i) {
|
||||
int result = dstr_cmp(&core_module_paths.array[i], path);
|
||||
|
||||
if (result == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user