Always know size limits

This commit is contained in:
Vítor Santos Costa 2015-11-05 15:24:03 +00:00
parent 9197b39393
commit 8fcceb9957

View File

@ -283,7 +283,7 @@ ADDR Yap_InitPreAllocCodeSpace(int wid) {
ADDR Yap_ExpandPreAllocCodeSpace(UInt sz0, void *cip, int safe) {
CACHE_REGS
char *ptr;
UInt sz = LOCAL_ScratchPad.msz;
UInt sz;
if (sz0 < SCRATCH_INC_SIZE)
sz0 = SCRATCH_INC_SIZE;
if (sz0 < LOCAL_ScratchPad.sz)