From: divverent Date: Tue, 15 May 2012 10:32:51 +0000 (+0000) Subject: reorder printf fields X-Git-Tag: xonotic-v0.8.0~96^2~221 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b014040a4c24c62c07467d16bd5724033a1985d4;p=xonotic%2Fdarkplaces.git reorder printf fields git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11817 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/prvm_cmds.c b/prvm_cmds.c index f18bff24..b3ca4bf3 100644 --- a/prvm_cmds.c +++ b/prvm_cmds.c @@ -6640,18 +6640,18 @@ nolength: if(flags & PRINTF_LEFT) *f++ = '-'; if(flags & PRINTF_SPACEPOSITIVE) *f++ = ' '; if(flags & PRINTF_SIGNPOSITIVE) *f++ = '+'; - if(*s == 'd' || *s == 'i' || *s == 'o' || *s == 'u' || *s == 'x' || *s == 'X') - { - // make it use a good integer type - for(p = INT_LOSSLESS_FORMAT_SIZE; *p; ) - *f++ = *p++; - } *f++ = '*'; if(precision >= 0) { *f++ = '.'; *f++ = '*'; } + if(*s == 'd' || *s == 'i' || *s == 'o' || *s == 'u' || *s == 'x' || *s == 'X') + { + // make it use a good integer type + for(p = INT_LOSSLESS_FORMAT_SIZE; *p; ) + *f++ = *p++; + } *f++ = *s; *f++ = 0;