From: havoc Date: Fri, 21 Oct 2005 05:26:35 +0000 (+0000) Subject: fix a float->enum conversion error with g++ on big endian systems X-Git-Tag: xonotic-v0.1.0preview~4536 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b501247a9b6ee16eba28edaa9aba1db595db9c43;p=xonotic%2Fdarkplaces.git fix a float->enum conversion error with g++ on big endian systems git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5747 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/mvm_cmds.c b/mvm_cmds.c index 09345132..3924a97d 100644 --- a/mvm_cmds.c +++ b/mvm_cmds.c @@ -654,7 +654,7 @@ void VM_M_setserverlistsort( void ) { VM_SAFEPARMCOUNT( 2, VM_M_setserverlistsort ); - serverlist_sortbyfield = (serverlist_infofield_t) PRVM_G_FLOAT( OFS_PARM0 ); + serverlist_sortbyfield = (serverlist_infofield_t)((int)PRVM_G_FLOAT( OFS_PARM0 )); serverlist_sortdescending = (qboolean) PRVM_G_FLOAT( OFS_PARM1 ); }