Fix more array subscript has type char warnings
This commit is contained in:
parent
270a22ce0b
commit
73e63d369c
|
@ -715,11 +715,11 @@ char *video_shader_read_reference_path(const char *path)
|
||||||
char *ref_path = line + STRLEN_CONST("#reference");
|
char *ref_path = line + STRLEN_CONST("#reference");
|
||||||
|
|
||||||
/* have at least 1 whitespace */
|
/* have at least 1 whitespace */
|
||||||
if (!isspace(*ref_path))
|
if (!isspace((unsigned char)*ref_path))
|
||||||
goto end;
|
goto end;
|
||||||
ref_path++;
|
ref_path++;
|
||||||
|
|
||||||
while (isspace(*ref_path))
|
while (isspace((unsigned char)*ref_path))
|
||||||
ref_path++;
|
ref_path++;
|
||||||
|
|
||||||
if (*ref_path == '\"')
|
if (*ref_path == '\"')
|
||||||
|
@ -738,7 +738,7 @@ char *video_shader_read_reference_path(const char *path)
|
||||||
{
|
{
|
||||||
/* if there's no second ", remove whitespace at the end */
|
/* if there's no second ", remove whitespace at the end */
|
||||||
p--;
|
p--;
|
||||||
while (isspace(*p))
|
while (isspace((unsigned char)*p))
|
||||||
*p-- = '\0';
|
*p-- = '\0';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -746,7 +746,7 @@ char *video_shader_read_reference_path(const char *path)
|
||||||
{
|
{
|
||||||
/* remove whitespace at the end (e.g. carriage return) */
|
/* remove whitespace at the end (e.g. carriage return) */
|
||||||
char *end = ref_path + strlen(ref_path) - 1;
|
char *end = ref_path + strlen(ref_path) - 1;
|
||||||
while (isspace(*end))
|
while (isspace((unsigned char)*end))
|
||||||
*end-- = '\0';
|
*end-- = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue