Burningsvideo 0.52 Linux Warnings

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6157 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
engineer_apple 2020-11-10 20:39:59 +00:00
parent 1170f08dae
commit 0b4a0b2977

@ -182,7 +182,7 @@ void CSoftwareTexture2::regenerateMipMapLevels(void* data, u32 layer)
void CSoftwareTexture2::regenerateMipMapLevels(void* data) void CSoftwareTexture2::regenerateMipMapLevels(void* data)
#endif #endif
{ {
int i; size_t i;
// release // release
for (i = 1; i < array_size(MipMap); ++i) for (i = 1; i < array_size(MipMap); ++i)
@ -314,7 +314,7 @@ void CSoftwareTexture2::regenerateMipMapLevels(void* data)
i = 0; i = 0;
while (name[i]) while (name[i])
{ {
if (name[i] == '/' || name[i] == '\\') filename = i + 1; if (name[i] == '/' || name[i] == '\\') filename = (s32)i + 1;
//if (name[i] == '.') ext = i; //if (name[i] == '.') ext = i;
i += 1; i += 1;
} }
@ -322,7 +322,7 @@ void CSoftwareTexture2::regenerateMipMapLevels(void* data)
{ {
if (MipMap[i]) if (MipMap[i])
{ {
snprintf_irr(buf, sizeof(buf), "mip/%s_%02d.png", name + filename, i); snprintf_irr(buf, sizeof(buf), "mip/%s_%02d.png", name + filename, (s32)i);
Driver->writeImageToFile(MipMap[i], buf); Driver->writeImageToFile(MipMap[i], buf);
} }
} }