[nostalgia/core/userland] Enable sign-conversion warning

This commit is contained in:
Gary Talent 2020-04-16 23:44:06 -05:00
parent 8e297f32d4
commit cef5fcd86f
2 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,8 @@ add_library(
media.cpp media.cpp
) )
target_compile_options(NostalgiaCore-Userspace PRIVATE -Wsign-conversion)
target_link_libraries( target_link_libraries(
NostalgiaCore-Userspace PUBLIC NostalgiaCore-Userspace PUBLIC
OxFS OxFS

View File

@ -21,7 +21,7 @@ char *loadRom(const char *path) {
return nullptr; return nullptr;
} }
const std::size_t size = file.tellg(); const auto size = file.tellg();
file.seekg(0, std::ios::beg); file.seekg(0, std::ios::beg);
auto buff = new char[size]; auto buff = new char[size];
file.read(buff, size); file.read(buff, size);