griffin: increase warning level for vc2010, fix signed/unsigned mismatch

This commit is contained in:
Brad Parker 2019-07-22 14:48:57 -04:00
parent 5eb5930838
commit 99dbc4d13e
2 changed files with 2 additions and 2 deletions

View File

@ -834,7 +834,7 @@ else ifneq (,$(findstring unix,$(platform)))
endif
ifneq (,$(findstring msvc,$(platform)))
CFLAGS += -W2 $(MACHDEP) $(PLATCFLAGS)
CFLAGS += -W3 $(MACHDEP) $(PLATCFLAGS)
else
CFLAGS += -Wall -std=gnu99 $(MACHDEP) $(PLATCFLAGS) $(INCLUDE)
INCLUDE += -I./libretro-common/include \

View File

@ -340,7 +340,7 @@ int64_t retro_vfs_file_read_cdrom(libretro_vfs_implementation_file *stream,
if (string_is_equal_noncase(ext, "cue"))
{
if (len < (unsigned)(stream->cdrom.cue_len - stream->cdrom.byte_pos))
if ((int64_t)len < (int64_t)stream->cdrom.cue_len - stream->cdrom.byte_pos)
{
#ifdef CDROM_DEBUG
printf("[CDROM] Read: Reading %" PRIu64 " bytes from cuesheet starting at %" PRIu64 "...\n", len, stream->cdrom.byte_pos);