diff --git a/src/Font.cpp b/src/Font.cpp index 0cc70aa2..2ee207b4 100644 --- a/src/Font.cpp +++ b/src/Font.cpp @@ -1707,7 +1707,7 @@ FontObject* LoadFontFromData(const unsigned char *data, size_t data_size, unsign font_object->data = (unsigned char*)malloc(data_size); memcpy(font_object->data, data, data_size); - FT_Error error = FT_New_Memory_Face(font_object->library, font_object->data, data_size, 0, &font_object->face); + FT_Error error = FT_New_Memory_Face(font_object->library, font_object->data, (FT_Long)data_size, 0, &font_object->face); if (error) { diff --git a/src/MapName.cpp b/src/MapName.cpp index d739e7d3..4d29389a 100644 --- a/src/MapName.cpp +++ b/src/MapName.cpp @@ -33,7 +33,7 @@ void ReadyMapName(const char *str) strcpy(gMapName.name, str); //Draw the text to the surface - int len = strlen(gMapName.name); + int len = (int)strlen(gMapName.name); CortBox2(&rc, 0, SURFACE_ID_ROOM_NAME); PutText2((-6 * len + 160) / 2 + 6, 1, gMapName.name, RGB(0x11, 0x00, 0x22), SURFACE_ID_ROOM_NAME); @@ -66,7 +66,7 @@ void StartMapName() void RestoreMapName() { - int len = strlen(gMapName.name); + int len = (int)strlen(gMapName.name); CortBox2(&rc, 0, SURFACE_ID_ROOM_NAME); PutText2((-6 * len + 160) / 2 + 6, 1, gMapName.name, RGB(0x11, 0x00, 0x22), SURFACE_ID_ROOM_NAME); diff --git a/src/Resource.cpp b/src/Resource.cpp index bde9f45c..14c11b9d 100644 --- a/src/Resource.cpp +++ b/src/Resource.cpp @@ -427,7 +427,7 @@ SDL_RWops* FindResource(const char *name) if (!resource) return NULL; - SDL_RWops *fp = SDL_RWFromConstMem(resource, resSize); + SDL_RWops *fp = SDL_RWFromConstMem(resource, (int)resSize); if (!fp) { diff --git a/src/TextScr.cpp b/src/TextScr.cpp index 6b648f7a..2b07d503 100644 --- a/src/TextScr.cpp +++ b/src/TextScr.cpp @@ -375,7 +375,7 @@ void SetNumberTextScript(int index) gTS.wait_beam = 0; //Check if should move to next line (prevent a memory overflow, come on guys, this isn't a leftover of pixel trying to make text wrapping) - gTS.p_write += strlen(str); + gTS.p_write += (unsigned int)strlen(str); if (gTS.p_write >= 35) {