0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-19 20:32:15 +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:
Hunter L. Allen 2018-06-30 15:23:08 -04:00
parent a705030b23
commit 294d32aee0

View File

@ -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) {