From f1057aa362e52301521802e87b9d9c5cc57dffdf Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 25 Jan 2018 13:06:56 -0500 Subject: [PATCH] tests: Fix truncation in GetFpcr() --- tests/A64/unicorn_emu/unicorn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/A64/unicorn_emu/unicorn.cpp b/tests/A64/unicorn_emu/unicorn.cpp index ccb1feea..3b7e5b5f 100644 --- a/tests/A64/unicorn_emu/unicorn.cpp +++ b/tests/A64/unicorn_emu/unicorn.cpp @@ -114,7 +114,7 @@ void Unicorn::SetVectors(const std::array& value) { } u32 Unicorn::GetFpcr() const { - u64 fpcr; + u32 fpcr; CHECKED(uc_reg_read(uc, UC_ARM64_REG_FPCR, &fpcr)); return fpcr; }