From 476680b4e0426f91663297dcc49fbde9432a8bb6 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 21 Mar 2004 04:54:56 +0000 Subject: [PATCH] fix some new gcc warnings (from my experience with qfcc, such casts are potentially dangerous anyway) --- qw/source/sv_demo.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qw/source/sv_demo.c b/qw/source/sv_demo.c index f1564cb6d..b3c8094ca 100644 --- a/qw/source/sv_demo.c +++ b/qw/source/sv_demo.c @@ -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