More 64-bit compatibility fixes.

This commit is contained in:
claudio 2015-03-28 13:13:27 -04:00
parent 2a3defaf02
commit 7fa6029de4
3 changed files with 3 additions and 3 deletions

View file

@ -68,7 +68,7 @@ void growDirs(WORD newtotalsize)
#define MakeNewHole(start,end,nwords) memmovew(start+nwords,start,(WORD)(end-start))
#define MakeNewHole(start,end,nwords) memmovew(start+nwords,start,(PTR2NUMBER)(end-start)*(sizeof(void*)>>2))
// DIRS STACK IS INCREASE AFTER FOR STORE, DECREASE BEFORE FOR READ

View file

@ -16,7 +16,7 @@ WORDPTR *halGrowMemory(BINT zone, WORDPTR *base, BINT newsize)
{
UNUSED_ARGUMENT(zone);
if(!base) return malloc(MAX_RAM);
if(!base) return malloc(MAX_RAM*(sizeof(void*)>>2));
else {
if((newsize<<2)>MAX_RAM) return 0;
return base;

View file

@ -15,7 +15,7 @@
#include <stdlib.h>
#include <string.h>
#define MAX_RAM 16*1024 // 64KBYTES PER AREA = 6*64 TOTAL
#define MAX_RAM 16*1024 // 16KBYTES PER AREA = 6*16 TOTAL, ON 64-BIT SYSTEMS IT'S 32KBYTES
#define SCRATCH_MEMORY
#define PERSISTENT_MEMORY