Fixed style

This commit is contained in:
Eharve14 2022-01-13 16:15:56 -05:00
parent ab6c7c7203
commit dbe64d6fe0
3 changed files with 5 additions and 4 deletions

View File

@ -486,7 +486,7 @@ static unsigned int get_num_images(char *imgdirpath)
continue;
}
num_images++;
if(num_images == 0) {
if (num_images == 0) {
fprintf(stderr, "Integer overflow detected when reading %s\n", imgdirpath);
return 0;
}

View File

@ -389,7 +389,7 @@ int get_num_images(char *imgdirpath)
continue;
}
num_images++;
if(num_images == 0) {
if (num_images == 0) {
fprintf(stderr, "Integer overflow detected when reading %s\n", imgdirpath);
return 0;
}

View File

@ -141,8 +141,9 @@ static int get_num_images(char *imgdirpath)
continue;
}
num_images++;
if(num_images == 0) {
fprintf(stderr, "Integer overflow detected when reading images from %s\n", imgdirpath);
if (num_images == 0) {
fprintf(stderr, "Integer overflow detected when reading images from %s\n",
imgdirpath);
return 0;
}
}