mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-29 16:21:46 +00:00
First off in gl_draw.c we have some nice cleanup code for the upload
code. Then we have the completely purge of treating 'unsigned' as a type, it is NOT a type, it is a TYPE MODIFIER! Under gcc for x86 it happens to try and do something sane, just treat it as a unsigned int, but that is EVIL, it is a MODIFIER and if ANYONE adds code which uses unsigned as a type in itself I /WILL/ harm them!!!
This commit is contained in:
parent
9691cca81d
commit
210ba16069
40 changed files with 222 additions and 244 deletions
|
@ -176,7 +176,7 @@ void PR_PrintStatement (dstatement_t *s)
|
|||
{
|
||||
int i;
|
||||
|
||||
if ( (unsigned)s->op < sizeof(pr_opnames)/sizeof(pr_opnames[0]))
|
||||
if ( (unsigned int)s->op < sizeof(pr_opnames)/sizeof(pr_opnames[0]))
|
||||
{
|
||||
Con_Printf ("%s ", pr_opnames[s->op]);
|
||||
i = strlen(pr_opnames[s->op]);
|
||||
|
@ -190,7 +190,7 @@ void PR_PrintStatement (dstatement_t *s)
|
|||
{
|
||||
Con_Printf ("branch %i",s->a);
|
||||
}
|
||||
else if ( (unsigned)(s->op - OP_STORE_F) < 6)
|
||||
else if ( (unsigned int)(s->op - OP_STORE_F) < 6)
|
||||
{
|
||||
Con_Printf ("%s",PR_GlobalString(s->a));
|
||||
Con_Printf ("%s", PR_GlobalStringNoContents(s->b));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue