fix some new gcc warnings (from my experience with qfcc, such casts are

potentially dangerous anyway)
This commit is contained in:
Bill Currie 2004-03-21 04:54:56 +00:00
parent 0b808b0c49
commit 476680b4e0
1 changed files with 4 additions and 4 deletions

View File

@ -172,7 +172,7 @@ SV_DemoWriteToDisk (int type, int to, float time)
int size;
sizebuf_t msg;
(byte *) p = demo.dbuf->sz.data;
p = (header_t *) demo.dbuf->sz.data;
demo.dbuf->h = NULL;
oldm = demo.dbuf->bufsize;
@ -201,7 +201,7 @@ SV_DemoWriteToDisk (int type, int to, float time)
demobuffer->start += size + header;
}
// move along
(byte *) p = p->data + size;
p = (header_t *) p->data + size;
}
if (demobuffer->start == demobuffer->last) {
@ -418,7 +418,7 @@ DemoSetBuf (byte type, int to)
header_t *p;
int pos = 0;
(byte *) p = demo.dbuf->sz.data;
p = (header_t *) demo.dbuf->sz.data;
while (pos < demo.dbuf->bufsize) {
pos += header + p->size;
@ -429,7 +429,7 @@ DemoSetBuf (byte type, int to)
return;
}
(byte *) p = p->data + p->size;
p = (header_t *) p->data + p->size;
}
// type && to not exist in the buf, so add it