From 5a4ccf69af86e354c1687df9d514c8a7eb7de6b5 Mon Sep 17 00:00:00 2001 From: qbix79 Date: Tue, 10 Jun 2008 19:19:30 +0000 Subject: [PATCH] leng is now int again. remove some warnings. git-svn-id: https://svn.eduke32.com/eduke32@787 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/build/src/cache1d.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/polymer/build/src/cache1d.c b/polymer/build/src/cache1d.c index ef5d9d89d..e46fca233 100644 --- a/polymer/build/src/cache1d.c +++ b/polymer/build/src/cache1d.c @@ -66,7 +66,7 @@ int cachecount = 0; char zerochar = 0; intptr_t cachestart = 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]; static int lockrecip[200]; @@ -119,7 +119,7 @@ void allocache(intptr_t *newhandle, int newbytes, char *newlockptr) if ((unsigned)newbytes > (unsigned)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!"); } @@ -239,7 +239,7 @@ static void reportandexit(char *errormessage) for (i=0;i