diff --git a/src/qcommon/parser.c b/src/qcommon/parser.c index 9ee490de..1728db86 100644 --- a/src/qcommon/parser.c +++ b/src/qcommon/parser.c @@ -1714,7 +1714,7 @@ int PC_EvaluateTokens( source_t *source, token_t *tokens, signed int *intvalue, //v = (value_t *) GetClearedMemory(sizeof(value_t)); AllocValue( v ) if ( negativevalue ) { - v->intvalue = -t->intvalue; + v->intvalue = -(signed int)(t->intvalue); v->floatvalue = -t->floatvalue; } //end if else diff --git a/src/server/sv_main.c b/src/server/sv_main.c index 5fce991f..8cf180c9 100644 --- a/src/server/sv_main.c +++ b/src/server/sv_main.c @@ -1860,6 +1860,7 @@ SV_LoadTag */ int SV_LoadTag( const char *mod_name ) { union { + byte *b; uint32_t *u; void *v; } buffer; @@ -1938,7 +1939,7 @@ int SV_LoadTag( const char *mod_name ) { // swap all the tags tag = &sv.tags[sv.num_tags]; sv.num_tags += pinmodel->numTags; - readTag = ( md3Tag_t* )( buffer.v + sizeof( tagHeader_t ) ); + readTag = ( md3Tag_t* )( buffer.b + sizeof( tagHeader_t ) ); for ( i = 0 ; i < pinmodel->numTags; i++, tag++, readTag++ ) { for ( j = 0 ; j < 3 ; j++ ) { tag->origin[j] = LittleFloat( readTag->origin[j] );