leng is now int again. remove some warnings.

git-svn-id: https://svn.eduke32.com/eduke32@787 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
qbix79 2008-06-10 19:19:30 +00:00
parent 5000ff0f52
commit 5a4ccf69af

View file

@ -66,7 +66,7 @@ int cachecount = 0;
char zerochar = 0; char zerochar = 0;
intptr_t cachestart = 0; intptr_t cachestart = 0;
int cacnum = 0, agecount = 0; int cacnum = 0, agecount = 0;
typedef struct { intptr_t *hand, leng; char *lock ; } cactype; typedef struct { intptr_t *hand;int leng; char *lock ; } cactype;
cactype cac[MAXCACHEOBJECTS]; cactype cac[MAXCACHEOBJECTS];
static int lockrecip[200]; static int lockrecip[200];
@ -119,7 +119,7 @@ void allocache(intptr_t *newhandle, int newbytes, char *newlockptr)
if ((unsigned)newbytes > (unsigned)cachesize) if ((unsigned)newbytes > (unsigned)cachesize)
{ {
Bprintf("Cachesize: %d\n",cachesize); Bprintf("Cachesize: %d\n",cachesize);
Bprintf("*Newhandle: 0x%x, Newbytes: %d, *Newlock: %d\n",(intptr_t)newhandle,newbytes,*newlockptr); Bprintf("*Newhandle: 0x%tx, Newbytes: %d, *Newlock: %d\n",(intptr_t)newhandle,newbytes,*newlockptr);
reportandexit("BUFFER TOO BIG TO FIT IN CACHE!"); reportandexit("BUFFER TOO BIG TO FIT IN CACHE!");
} }
@ -239,7 +239,7 @@ static void reportandexit(char *errormessage)
for (i=0;i<cacnum;i++) for (i=0;i<cacnum;i++)
{ {
Bprintf("%d- ",i); Bprintf("%d- ",i);
if (cac[i].hand) Bprintf("ptr: 0x%x, ",*cac[i].hand); if (cac[i].hand) Bprintf("ptr: 0x%tx, ",*cac[i].hand);
else Bprintf("ptr: NULL, "); else Bprintf("ptr: NULL, ");
Bprintf("leng: %d, ",cac[i].leng); Bprintf("leng: %d, ",cac[i].leng);
if (cac[i].lock) Bprintf("lock: %d\n",*cac[i].lock); if (cac[i].lock) Bprintf("lock: %d\n",*cac[i].lock);