mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
cdrom: fix printf warnings
This commit is contained in:
parent
fa041e4040
commit
02575ddf67
@ -147,7 +147,7 @@ void retro_vfs_file_open_cdrom(
|
||||
{
|
||||
if (!memcmp(path + 6, "-track", strlen("-track")))
|
||||
{
|
||||
if (sscanf(path + 12, "%02hhd", &stream->cdrom.cur_track))
|
||||
if (sscanf(path + 12, "%02u", (unsigned*)&stream->cdrom.cur_track))
|
||||
{
|
||||
#ifdef CDROM_DEBUG
|
||||
printf("CDROM: Opening track %d\n", stream->cdrom.cur_track);
|
||||
@ -227,7 +227,7 @@ void retro_vfs_file_open_cdrom(
|
||||
{
|
||||
if (!memcmp(path + 1, ":/drive-track", strlen(":/drive-track")))
|
||||
{
|
||||
if (sscanf(path + 14, "%02hhd", &stream->cdrom.cur_track))
|
||||
if (sscanf(path + 14, "%02u", (unsigned*)&stream->cdrom.cur_track))
|
||||
{
|
||||
#ifdef CDROM_DEBUG
|
||||
printf("CDROM: Opening track %d\n", stream->cdrom.cur_track);
|
||||
|
Loading…
x
Reference in New Issue
Block a user