summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/program_header.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shader_recompiler/program_header.h')
-rw-r--r--src/shader_recompiler/program_header.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/program_header.h b/src/shader_recompiler/program_header.h
index 15f43f2d8..6933750aa 100644
--- a/src/shader_recompiler/program_header.h
+++ b/src/shader_recompiler/program_header.h
@@ -230,8 +230,8 @@ struct ProgramHeader {
230 }; 230 };
231 231
232 [[nodiscard]] u64 LocalMemorySize() const noexcept { 232 [[nodiscard]] u64 LocalMemorySize() const noexcept {
233 return (common1.shader_local_memory_low_size | 233 return static_cast<u64>(common1.shader_local_memory_low_size) |
234 (common2.shader_local_memory_high_size << 24)); 234 (static_cast<u64>(common2.shader_local_memory_high_size) << 24);
235 } 235 }
236}; 236};
237static_assert(sizeof(ProgramHeader) == 0x50, "Incorrect structure size"); 237static_assert(sizeof(ProgramHeader) == 0x50, "Incorrect structure size");