From 876bb5adf4af945fbe0182c91bff4555d94ad824 Mon Sep 17 00:00:00 2001 From: pjgat09 Date: Sun, 15 Mar 2015 02:35:47 +0000 Subject: [PATCH] Ram search: fix searching for a specific value >= 0x80000000 --- BizHawk.Client.EmuHawk/tools/Watch/RamSearch.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BizHawk.Client.EmuHawk/tools/Watch/RamSearch.cs b/BizHawk.Client.EmuHawk/tools/Watch/RamSearch.cs index 6f65e8a152..de82b9fca7 100644 --- a/BizHawk.Client.EmuHawk/tools/Watch/RamSearch.cs +++ b/BizHawk.Client.EmuHawk/tools/Watch/RamSearch.cs @@ -435,7 +435,7 @@ namespace BizHawk.Client.EmuHawk _searches.Domain.CanPoke(); } - private int? CompareToValue + private long? CompareToValue { get { @@ -446,7 +446,7 @@ namespace BizHawk.Client.EmuHawk if (SpecificValueRadio.Checked) { - return SpecificValueBox.ToRawInt(); + return (long)SpecificValueBox.ToRawInt() & 0x00000000FFFFFFFF; } if (SpecificAddressRadio.Checked)