1
Fork 0
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:
Gareth Rees 2014-10-13 17:36:44 +01:00
parent bef2871a1a
commit 5afa5a492b

View file

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