mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2024-11-25 05:51:15 +00:00
Fix -Wchar-subscripts warnings
array subscript has type ‘char’
This commit is contained in:
parent
c7c187e4dc
commit
d83cf21bde
2 changed files with 4 additions and 2 deletions
|
@ -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] = ' ';
|
||||
|
|
|
@ -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] = ' ';
|
||||
|
|
Loading…
Reference in a new issue