From 9e27e4d250eb125aff70b75c1b04fb403c796797 Mon Sep 17 00:00:00 2001 From: MerryMage Date: Tue, 9 Jan 2018 21:22:17 +0000 Subject: [PATCH] imm: bug: SignExtend wasn't working for T with bit size > 32 --- 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 78f137b5..edc3d456 100644 --- a/src/frontend/A64/imm.h +++ b/src/frontend/A64/imm.h @@ -35,7 +35,7 @@ public: template T SignExtend() const { static_assert(Common::BitSize() >= bit_size); - return static_cast(Common::SignExtend(value)); + return Common::SignExtend(value); } template