mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-23 15:40:39 +00:00
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:
parent
5000ff0f52
commit
5a4ccf69af
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue