mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-25 09:17:12 +01:00
minor warning fixes.
This commit is contained in:
parent
2fb71ac52d
commit
6f8910e398
@ -89,6 +89,9 @@ SDL_cpuinfo.obj: SDL_cpuinfo.c
|
|||||||
SDL_rwops.obj: SDL_rwops.c
|
SDL_rwops.obj: SDL_rwops.c
|
||||||
wcc386 $(CFLAGS) -wcd=136 -fo=$^@ $<
|
wcc386 $(CFLAGS) -wcd=136 -fo=$^@ $<
|
||||||
|
|
||||||
|
SDL_wave.obj: SDL_wave.c
|
||||||
|
wcc386 $(CFLAGS) -wcd=124 -fo=$^@ $<
|
||||||
|
|
||||||
SDL_blendfillrect.obj: SDL_blendfillrect.c
|
SDL_blendfillrect.obj: SDL_blendfillrect.c
|
||||||
wcc386 $(CFLAGS) -wcd=200 -fo=$^@ $<
|
wcc386 $(CFLAGS) -wcd=200 -fo=$^@ $<
|
||||||
|
|
||||||
|
@ -57,13 +57,11 @@ main(int argc, char *argv[])
|
|||||||
success = SDL_sscanf(argv[1] + 2, "%llx", &seed);
|
success = SDL_sscanf(argv[1] + 2, "%llx", &seed);
|
||||||
else
|
else
|
||||||
success = SDL_sscanf(argv[1], "%llu", &seed);
|
success = SDL_sscanf(argv[1], "%llu", &seed);
|
||||||
if (!success)
|
if (!success) {
|
||||||
{
|
|
||||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Invalid seed. Use a decimal or hexadecimal number.\n");
|
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Invalid seed. Use a decimal or hexadecimal number.\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if (seed <= 0xffffffff)
|
if (seed <= ((Uint64)0xffffffff)) {
|
||||||
{
|
|
||||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Seed must be equal or greater than 0x100000000.\n");
|
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Seed must be equal or greater than 0x100000000.\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user