From bca25b1a78bad80565e6341694d00114d6a952f4 Mon Sep 17 00:00:00 2001 From: Nik Date: Mon, 25 Sep 2023 07:22:06 +0200 Subject: [PATCH] includes/hex: Fixed duplicate variable name in `hex::core::get_selection()` function Fixes #167 --- includes/hex/core.pat | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/hex/core.pat b/includes/hex/core.pat index 80bf0ab..6ab2d5a 100644 --- a/includes/hex/core.pat +++ b/includes/hex/core.pat @@ -21,20 +21,20 @@ namespace hex::core { @return The current selection */ fn get_selection() { - u128 result = builtin::hex::core::get_selection(); + u128 selection = builtin::hex::core::get_selection(); Selection result; - if (result == u128(-1)) { + if (selection == u128(-1)) { result.valid = false; result.address = 0x00; result.size = 0x00; } else { result.valid = true; - result.address = result >> 64; - result.size = result & u64(-1); + result.address = selection >> 64; + result.size = selection & u64(-1); } return result; }; -} \ No newline at end of file +}