Fix findVirtualRegionBeforeAddr

This commit is contained in:
Mathieu Maret 2024-02-08 20:54:53 +01:00 committed by Mathieu Maret
parent a03abab06a
commit 8d2dd71d66

View File

@ -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;
}