diff --git a/d3xp/gamesys/SysCmds.cpp b/d3xp/gamesys/SysCmds.cpp index f856962..e4838e6 100644 --- a/d3xp/gamesys/SysCmds.cpp +++ b/d3xp/gamesys/SysCmds.cpp @@ -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] = ' '; diff --git a/game/gamesys/SysCmds.cpp b/game/gamesys/SysCmds.cpp index 1e4dc88..63eed3f 100644 --- a/game/gamesys/SysCmds.cpp +++ b/game/gamesys/SysCmds.cpp @@ -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] = ' ';