PSP2: Fix some warnings
Jeffrey Pfau jeffrey@endrift.com
Tue, 23 Aug 2016 02:28:57 -0700
2 files changed,
2 insertions(+),
4 deletions(-)
M
src/util/common.h
→
src/util/common.h
@@ -6,9 +6,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef COMMON_H #define COMMON_H -#ifndef PSP2 #include <ctype.h> -#endif #include <fcntl.h> #include <inttypes.h> #include <limits.h>
M
src/util/png-io.c
→
src/util/png-io.c
@@ -84,8 +84,8 @@
bool PNGWriteCustomChunk(png_structp png, const char* name, size_t size, void* data) { char realName[5]; strncpy(realName, name, 4); - realName[0] = tolower(realName[0]); - realName[1] = tolower(realName[1]); + realName[0] = tolower((int) realName[0]); + realName[1] = tolower((int) realName[1]); realName[4] = '\0'; if (setjmp(png_jmpbuf(png))) { return false;