mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-25 15:00:45 -08:00
Use pointeradd to express the condition in mps_commit -- it expands to the same code, and better conveys the intention.
Copied from Perforce Change: 187242 ServerID: perforce.ravenbrook.com
This commit is contained in:
parent
bef2871a1a
commit
5afa5a492b
1 changed files with 1 additions and 1 deletions
|
|
@ -928,7 +928,7 @@ mps_bool_t (mps_commit)(mps_ap_t mps_ap, mps_addr_t p, size_t size)
|
|||
AVER(p != NULL);
|
||||
AVER(size > 0);
|
||||
AVER(p == mps_ap->init);
|
||||
AVER((void *)((char *)mps_ap->init + size) == mps_ap->alloc);
|
||||
AVER(PointerAdd(mps_ap->init, size) == mps_ap->alloc);
|
||||
|
||||
return mps_commit(mps_ap, p, size);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue