VERY experimental Nintendo Switch 2 emulator
C++
memory_util: boost hashes are size_t
MerryMagece9c74b4df1e
diff --git a/src/video_core/shader/memory_util.cpp b/src/video_core/shader/memory_util.cppindex 074f21691c..5071c83ca8 100644--- a/src/video_core/shader/memory_util.cpp+++ b/src/video_core/shader/memory_util.cpp@@ -66,12 +66,12 @@ ProgramCode GetShaderCode(Tegra::MemoryManager& memory_manager, GPUVAddr gpu_addu64 GetUniqueIdentifier(Tegra::Engines::ShaderType shader_type, bool is_a, const ProgramCode& code,const ProgramCode& code_b) {- u64 unique_identifier = boost::hash_value(code);+ size_t unique_identifier = boost::hash_value(code);if (is_a) {// VertexA programs include two programsboost::hash_combine(unique_identifier, boost::hash_value(code_b));}- return unique_identifier;+ return static_cast<u64>(unique_identifier);}} // namespace VideoCommon::Shader