Fix findVirtualRegionBeforeAddr

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

View File

@ -50,7 +50,7 @@ static struct uAddrVirtualReg *findVirtualRegionBeforeAddr(struct uAddrSpace *as
list_foreach_named(as->listVirtualReg, reg, idx, prevInAddrSpace, nextInAddrSpace) list_foreach_named(as->listVirtualReg, reg, idx, prevInAddrSpace, nextInAddrSpace)
{ {
if (uaddr > reg->addr) if (uaddr < reg->addr)
break; break;
prev = reg; prev = reg;
} }