all repos — mgba @ 59b4d22833281f2758be30b8cedea35338daff25

mGBA Game Boy Advance Emulator

PSP2: Fix some warnings
Jeffrey Pfau jeffrey@endrift.com
Tue, 23 Aug 2016 02:28:57 -0700
commit

59b4d22833281f2758be30b8cedea35338daff25

parent

9b4fa75c81d50768359169887efaf3f17028284a

2 files changed, 2 insertions(+), 4 deletions(-)

jump to
M src/util/common.hsrc/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.csrc/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;