Fix compiler warnings

These are the two warnings that I fixed:

/src/dynamic_libs/os_functions.c: In function '_os_find_export':
/src/dynamic_libs/os_functions.c:171:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (i = 0; i < sizeof(a) - 1; i++)
                       ^
/src/dynamic_libs/os_functions.c:177:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (i = 0; i < sizeof(b) - 1; i++)
                       ^
This commit is contained in:
Crayon2000 2017-04-29 21:28:05 -04:00
parent d2f15cc9b6
commit 7151534641

View File

@ -166,7 +166,7 @@ void _os_find_export(u32 handle, const char *funcName, void *funcPointer)
*/ */
char buf[256], *bufp = buf; char buf[256], *bufp = buf;
const char a[] = "Function ", b[] = " is NULL", *p; const char a[] = "Function ", b[] = " is NULL", *p;
int i; unsigned int i;
for (i = 0; i < sizeof(a) - 1; i++) for (i = 0; i < sizeof(a) - 1; i++)
*bufp++ = a[i]; *bufp++ = a[i];