fix: may no address more memory than is present blocks.c

This commit is contained in:
ceriel
1987-08-03 14:04:44 +00:00
parent 6fead7b970
commit 444a8701d6
3 changed files with 14 additions and 15 deletions

View File

@@ -96,11 +96,8 @@ load_block(sz, al)
{
arith esz = ATW(sz); /* effective size == actual # pushed bytes */
if ((sz == al) && (word_align % al == 0))
if (((sz == al) && (word_align % al == 0)) || (al % word_align == 0))
C_loi(sz);
else
if (al % word_align == 0)
C_loi(esz);
else {
#ifndef STB
arith src, dst;