Always know size limits
This commit is contained in:
parent
9197b39393
commit
8fcceb9957
@ -283,7 +283,7 @@ ADDR Yap_InitPreAllocCodeSpace(int wid) {
|
|||||||
ADDR Yap_ExpandPreAllocCodeSpace(UInt sz0, void *cip, int safe) {
|
ADDR Yap_ExpandPreAllocCodeSpace(UInt sz0, void *cip, int safe) {
|
||||||
CACHE_REGS
|
CACHE_REGS
|
||||||
char *ptr;
|
char *ptr;
|
||||||
UInt sz = LOCAL_ScratchPad.msz;
|
UInt sz;
|
||||||
if (sz0 < SCRATCH_INC_SIZE)
|
if (sz0 < SCRATCH_INC_SIZE)
|
||||||
sz0 = SCRATCH_INC_SIZE;
|
sz0 = SCRATCH_INC_SIZE;
|
||||||
if (sz0 < LOCAL_ScratchPad.sz)
|
if (sz0 < LOCAL_ScratchPad.sz)
|
||||||
|
Reference in New Issue
Block a user