From 3cd688682528163b4eea138a4a8017ac545da576 Mon Sep 17 00:00:00 2001 From: Skyth <19259897+blueskythlikesclouds@users.noreply.github.com> Date: Wed, 18 Sep 2024 20:39:05 +0300 Subject: [PATCH] Change SymbolComparer to not care about symbol size. --- PowerUtils/symbol.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PowerUtils/symbol.h b/PowerUtils/symbol.h index 5164743..378fc0e 100644 --- a/PowerUtils/symbol.h +++ b/PowerUtils/symbol.h @@ -24,7 +24,7 @@ struct SymbolComparer bool operator()(const Symbol& lhs, size_t rhs) const { - return rhs > lhs.address + lhs.size; + return lhs.address < rhs; } bool operator()(size_t lhs, const Symbol& rhs) const @@ -34,6 +34,6 @@ struct SymbolComparer bool operator()(const Symbol& lhs, const Symbol& rhs) const { - return (lhs.address + lhs.size) < rhs.address; + return lhs.address < rhs.address; } };