From 841255cd16f0a9578cd90a860232e34c209c3c3a Mon Sep 17 00:00:00 2001 From: Hamish Milne Date: Sat, 28 Mar 2020 21:40:18 +0000 Subject: [PATCH] Attempt to fix the linux builds --- src/audio_core/CMakeLists.txt | 2 +- src/core/file_sys/romfs_reader.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/audio_core/CMakeLists.txt b/src/audio_core/CMakeLists.txt index 3cb9b538d..63a566596 100644 --- a/src/audio_core/CMakeLists.txt +++ b/src/audio_core/CMakeLists.txt @@ -35,7 +35,7 @@ add_library(audio_core STATIC create_target_directory_groups(audio_core) -target_link_libraries(audio_core PUBLIC common core) +target_link_libraries(audio_core PUBLIC common) target_link_libraries(audio_core PRIVATE SoundTouch teakra) if(ENABLE_MF) diff --git a/src/core/file_sys/romfs_reader.cpp b/src/core/file_sys/romfs_reader.cpp index a1ff38945..4c83515b3 100644 --- a/src/core/file_sys/romfs_reader.cpp +++ b/src/core/file_sys/romfs_reader.cpp @@ -12,7 +12,7 @@ std::size_t DirectRomFSReader::ReadFile(std::size_t offset, std::size_t length, if (length == 0) return 0; // Crypto++ does not like zero size buffer file.Seek(file_offset + offset, SEEK_SET); - std::size_t read_length = std::min(length, data_size - offset); + std::size_t read_length = std::min(length, static_cast(data_size) - offset); read_length = file.ReadBytes(buffer, read_length); if (is_encrypted) { CryptoPP::CTR_Mode::Decryption d(key.data(), key.size(), ctr.data());