From: divverent Date: Tue, 15 May 2012 10:32:51 +0000 (+0000) Subject: reorder printf fields X-Git-Tag: xonotic-v0.7.0~136 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=259a01f0339a7374ad596d775872177c04f816a2;p=xonotic%2Fdarkplaces.git reorder printf fields git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11817 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=93e728782b8b90c93287593672e59d76ede86b54 --- 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;