Fix -Wchar-subscripts warnings

array subscript has type ‘char’
This commit is contained in:
dhewg 2011-11-30 21:22:05 +01:00 committed by Daniel Gibson
parent c7c187e4dc
commit d83cf21bde
2 changed files with 4 additions and 2 deletions

View file

@ -1276,7 +1276,8 @@ PrintFloat
==================
*/
static void PrintFloat( float f ) {
char buf[128], i;
char buf[128];
int i;
for ( i = sprintf( buf, "%3.2f", f ); i < 7; i++ ) {
buf[i] = ' ';

View file

@ -1207,7 +1207,8 @@ PrintFloat
==================
*/
static void PrintFloat( float f ) {
char buf[128], i;
char buf[128];
int i;
for ( i = sprintf( buf, "%3.2f", f ); i < 7; i++ ) {
buf[i] = ' ';