1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-03 03:23:33 +02:00

Fix warnings raised by GCC 8

This commit is contained in:
Rémi Verschelde 2020-01-11 02:05:26 +01:00
parent 6bb245b8a4
commit 90f1819d8d
3 changed files with 8 additions and 4 deletions

View File

@ -108,7 +108,7 @@ bool binaryBlob::unPackBinary(const char* name)
}
PHYSFS_close(handle);
printf("The complete reloaded file size: %li\n", size);
printf("The complete reloaded file size: %lli\n", size);
for (int i = 0; i < 128; i += 1)
{

View File

@ -3078,8 +3078,12 @@ void Graphics::bigrprint(int x, int y, std::string& t, int r, int g, int b, bool
x -= (len(t));
if (r < -1) r = -1; if (g < 0) g = 0; if (b < 0) b = 0;
if (r > 255) r = 255; if (g > 255) g = 255; if (b > 255) b = 255;
if (r < -1) r = -1;
if (g < 0) g = 0;
if (b < 0) b = 0;
if (r > 255) r = 255;
if (g > 255) g = 255;
if (b > 255) b = 255;
ct.colour = getRGB(r, g, b);
if (cen)