diff --git a/src/nostalgia/core/userland/CMakeLists.txt b/src/nostalgia/core/userland/CMakeLists.txt index 48f8f1ab..8c559fdc 100644 --- a/src/nostalgia/core/userland/CMakeLists.txt +++ b/src/nostalgia/core/userland/CMakeLists.txt @@ -3,6 +3,8 @@ add_library( media.cpp ) +target_compile_options(NostalgiaCore-Userspace PRIVATE -Wsign-conversion) + target_link_libraries( NostalgiaCore-Userspace PUBLIC OxFS diff --git a/src/nostalgia/core/userland/media.cpp b/src/nostalgia/core/userland/media.cpp index 888dc65b..15cfde9f 100644 --- a/src/nostalgia/core/userland/media.cpp +++ b/src/nostalgia/core/userland/media.cpp @@ -21,7 +21,7 @@ char *loadRom(const char *path) { return nullptr; } - const std::size_t size = file.tellg(); + const auto size = file.tellg(); file.seekg(0, std::ios::beg); auto buff = new char[size]; file.read(buff, size);