From 94507a9444998d863daf708ea98bbe2e58114f25 Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Sun, 21 Apr 2019 21:20:14 -0230 Subject: [PATCH] Fix minor compile warnings for libretro. --- src/libretro/StellaLIBRETRO.cxx | 9 +++------ src/libretro/StellaLIBRETRO.hxx | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/libretro/StellaLIBRETRO.cxx b/src/libretro/StellaLIBRETRO.cxx index 2751a7bf7..0e6a9bacf 100644 --- a/src/libretro/StellaLIBRETRO.cxx +++ b/src/libretro/StellaLIBRETRO.cxx @@ -220,10 +220,7 @@ bool StellaLIBRETRO::loadState(const void* data, size_t size) state.putByteArray(reinterpret_cast(data), static_cast(size)); - if (!myOSystem->state().loadState(state)) - return false; - - return true; + return myOSystem->state().loadState(state); } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -237,12 +234,12 @@ bool StellaLIBRETRO::saveState(void* data, size_t size) if (state.size() > size) return false; - state.getByteArray(reinterpret_cast(data), state.size()); + state.getByteArray(reinterpret_cast(data), static_cast(state.size())); return true; } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -uInt32 StellaLIBRETRO::getStateSize() +size_t StellaLIBRETRO::getStateSize() { Serializer state; diff --git a/src/libretro/StellaLIBRETRO.hxx b/src/libretro/StellaLIBRETRO.hxx index 472d6d0f9..3de7cc585 100644 --- a/src/libretro/StellaLIBRETRO.hxx +++ b/src/libretro/StellaLIBRETRO.hxx @@ -63,7 +63,7 @@ class StellaLIBRETRO //uInt8* getRAM() { return myOSystem->console().system().m6532().getRAM(); } //uInt32 getRAMSize() { return 128; } - uInt32 getStateSize(); + size_t getStateSize(); bool getConsoleNTSC() { return console_timing == ConsoleTiming::ntsc; }