diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/interp.h | 6 | ||||
| -rw-r--r-- | include/pool.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/interp.h b/include/interp.h index b9fc11f..dbc1f07 100644 --- a/include/interp.h +++ b/include/interp.h @@ -1,6 +1,6 @@ typedef uchar BYTE; /* 8 bits */ -typedef int WORD; /* 32 bits */ -typedef unsigned int UWORD; /* 32 bits */ +typedef long WORD; /* 32 bits */ +typedef unsigned long UWORD; /* 32 bits */ typedef vlong LONG; /* 64 bits */ typedef uvlong ULONG; /* 64 bits */ typedef double REAL; /* 64 double IEEE754 */ @@ -29,7 +29,7 @@ enum /* STRUCTALIGN is the unit to which the compiler aligns structs. */ /* It really should be defined somewhere else */ - STRUCTALIGN = sizeof(int) /* must be >=2 because of Strings */ + STRUCTALIGN = sizeof(long) /* must be >=2 because of Strings */ }; enum diff --git a/include/pool.h b/include/pool.h index 3775148..66b3479 100644 --- a/include/pool.h +++ b/include/pool.h @@ -55,7 +55,7 @@ struct Btail #define B2LIMIT(b) ((Bhdr*)((uchar*)b + b->csize)) -#define BHDRSIZE ((int)(((Bhdr*)0)->u.data)+sizeof(Btail)) +#define BHDRSIZE ((long)(((Bhdr*)0)->u.data)+sizeof(Btail)) extern void (*poolfault)(void *, char *, ulong); extern void poolinit(void); |
