From a1dfa015158618a1153ccbe4d218117f470ec338 Mon Sep 17 00:00:00 2001 From: MerryMage Date: Fri, 12 Jan 2018 17:18:07 +0000 Subject: [PATCH] imm: Suppress MSVC warning C4244: value will never be truncated --- src/frontend/A64/imm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/A64/imm.h b/src/frontend/A64/imm.h index 609afc5d..5de4fd5d 100644 --- a/src/frontend/A64/imm.h +++ b/src/frontend/A64/imm.h @@ -30,7 +30,7 @@ public: template T ZeroExtend() const { static_assert(Common::BitSize() >= bit_size); - return value; + return static_cast(value); } template