mirror of
https://git.code.sf.net/p/newrpl/sources
synced 2024-11-16 19:51:25 +01:00
More 64-bit compatibility fixes.
This commit is contained in:
parent
2a3defaf02
commit
7fa6029de4
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue