[nostalgia/core/userland] Enable sign-conversion warning
This commit is contained in:
parent
8e297f32d4
commit
cef5fcd86f
@ -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
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user