From fc96aa9e5058a0b064bbdeb20e85e951eb2b7703 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Tue, 12 Dec 2017 17:09:40 -0500 Subject: Modify Hash Functions. --- lowlevelilinstruction.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lowlevelilinstruction.h') diff --git a/lowlevelilinstruction.h b/lowlevelilinstruction.h index b2849d44..169c7a60 100644 --- a/lowlevelilinstruction.h +++ b/lowlevelilinstruction.h @@ -158,10 +158,10 @@ namespace std #else typedef BinaryNinja::SSARegister argument_type; #endif - typedef uint64_t result_type; + typedef uint32_t result_type; result_type operator()(argument_type const& value) const { - return ((result_type)value.reg) ^ ((result_type)value.version << 32); + return ((result_type)value.reg) ^ ((result_type)value.version << 16); } }; @@ -176,10 +176,10 @@ namespace std #else typedef BinaryNinja::SSAFlag argument_type; #endif - typedef uint64_t result_type; + typedef uint32_t result_type; result_type operator()(argument_type const& value) const { - return ((result_type)value.flag) ^ ((result_type)value.version << 32); + return ((result_type)value.flag) ^ ((result_type)value.version << 16); } }; -- cgit v1.3.1