Skip to content

Commit

Permalink
Compiler fixes for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ensiform committed Sep 1, 2023
1 parent 30097b4 commit dc34d63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/qcommon/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/server/sv_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1860,6 +1860,7 @@ SV_LoadTag
*/
int SV_LoadTag( const char *mod_name ) {
union {
byte *b;
uint32_t *u;
void *v;
} buffer;
Expand Down Expand Up @@ -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] );
Expand Down

0 comments on commit dc34d63

Please sign in to comment.