From 473949d486ad6a70e2d37800ada4b2eb7fa8258e Mon Sep 17 00:00:00 2001 From: MerryMage Date: Sun, 21 Jun 2020 16:29:51 +0100 Subject: [PATCH] asimd_load_store_structures: Suppress MSVC shift warning --- .../A32/translate/impl/asimd_load_store_structures.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/A32/translate/impl/asimd_load_store_structures.cpp b/src/frontend/A32/translate/impl/asimd_load_store_structures.cpp index 80b0847f..4d0664c5 100644 --- a/src/frontend/A32/translate/impl/asimd_load_store_structures.cpp +++ b/src/frontend/A32/translate/impl/asimd_load_store_structures.cpp @@ -244,7 +244,7 @@ bool ArmTranslatorVisitor::v8_VST_single(bool D, Reg n, size_t Vd, size_t sz, si return UndefinedInstruction(); } - const size_t ebytes = 1 << sz; + const size_t ebytes = size_t(1) << sz; const size_t index = Common::Bits(sz + 1, 3, index_align); const size_t inc = (sz != 0 && Common::Bit(sz, index_align)) ? 2 : 1; const size_t a = Common::Bits(0, sz ? sz - 1 : 0, index_align); @@ -306,7 +306,7 @@ bool ArmTranslatorVisitor::v8_VLD_single(bool D, Reg n, size_t Vd, size_t sz, si return UndefinedInstruction(); } - const size_t ebytes = 1 << sz; + const size_t ebytes = size_t(1) << sz; const size_t index = Common::Bits(sz + 1, 3, index_align); const size_t inc = (sz != 0 && Common::Bit(sz, index_align)) ? 2 : 1; const size_t a = Common::Bits(0, sz ? sz - 1 : 0, index_align);