diff --git a/tests/test-text.cxx b/tests/test-text.cxx index cc9a4e09e..dec0c85fd 100644 --- a/tests/test-text.cxx +++ b/tests/test-text.cxx @@ -4,7 +4,7 @@ #include static void readchars( FILE *fd ) { - char c; + int c; while ( (c = fgetc(fd)) != EOF ) { printf("c = %d", c); if ( c == 10 ) {