From 8d2dd71d66cb7e876296f854879c6a914cf96f35 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Thu, 8 Feb 2024 20:54:53 +0100 Subject: [PATCH] Fix findVirtualRegionBeforeAddr --- core/uaddrspace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/uaddrspace.c b/core/uaddrspace.c index 0ae45f5..babe64e 100644 --- a/core/uaddrspace.c +++ b/core/uaddrspace.c @@ -50,7 +50,7 @@ static struct uAddrVirtualReg *findVirtualRegionBeforeAddr(struct uAddrSpace *as list_foreach_named(as->listVirtualReg, reg, idx, prevInAddrSpace, nextInAddrSpace) { - if (uaddr > reg->addr) + if (uaddr < reg->addr) break; prev = reg; }