diff --git a/desmume/src/common.cpp b/desmume/src/common.cpp index b35cbec65..f6ba3f7d9 100644 --- a/desmume/src/common.cpp +++ b/desmume/src/common.cpp @@ -25,7 +25,7 @@ #include #include "common.h" -u8 logo_data[156] = { +const u8 logo_data[156] = { 0x24,0xFF,0xAE,0x51,0x69,0x9A,0xA2,0x21,0x3D,0x84,0x82,0x0A,0x84,0xE4,0x09,0xAD, 0x11,0x24,0x8B,0x98,0xC0,0x81,0x7F,0x21,0xA3,0x52,0xBE,0x19,0x93,0x09,0xCE,0x20, 0x10,0x46,0x4A,0x4A,0xF8,0x27,0x31,0xEC,0x58,0xC7,0xE8,0x33,0x82,0xE3,0xCE,0xBF, @@ -68,7 +68,7 @@ char *removeSpecialChars(char *s) if (!s) return NULL; if (!*s) return s; - for (int i = 0; i < strlen(s); i++) + for (u32 i = 0; i < strlen(s); i++) { if (isspace(s[i]) && (s[i] != 0x20)) *buf = 0x20; @@ -78,4 +78,4 @@ char *removeSpecialChars(char *s) } *buf = 0; return s; -} \ No newline at end of file +} diff --git a/desmume/src/common.h b/desmume/src/common.h index 0753b7fad..5769e10fc 100644 --- a/desmume/src/common.h +++ b/desmume/src/common.h @@ -28,7 +28,7 @@ #include "types.h" #include -extern u8 logo_data[156]; +extern const u8 logo_data[156]; #ifdef WIN32 #include