@@ -468,7 +468,7 @@ static int end_line(parser_t *self) {
468
468
if (self -> error_bad_lines ) {
469
469
self -> error_msg = (char * )malloc (bufsize );
470
470
snprintf (self -> error_msg , bufsize ,
471
- "Expected %d fields in line %zu , saw %d\n" ,
471
+ "Expected %d fields in line %d , saw %d\n" ,
472
472
ex_fields , self -> file_lines , fields );
473
473
474
474
TRACE (("Error at line %d, %d fields\n" , self -> file_lines , fields ));
@@ -480,7 +480,7 @@ static int end_line(parser_t *self) {
480
480
// pass up error message
481
481
msg = (char * )malloc (bufsize );
482
482
snprintf (msg , bufsize ,
483
- "Skipping line %zu : expected %d fields, saw %d\n" ,
483
+ "Skipping line %d : expected %d fields, saw %d\n" ,
484
484
self -> file_lines , ex_fields , fields );
485
485
append_warning (self , msg );
486
486
free (msg );
@@ -1147,7 +1147,7 @@ static int parser_handle_eof(parser_t *self) {
1147
1147
case IN_QUOTED_FIELD :
1148
1148
self -> error_msg = (char * )malloc (bufsize );
1149
1149
snprintf (self -> error_msg , bufsize ,
1150
- "EOF inside string starting at line %zu " , self -> file_lines );
1150
+ "EOF inside string starting at line %d " , self -> file_lines );
1151
1151
return -1 ;
1152
1152
1153
1153
case ESCAPED_CHAR :
@@ -1323,7 +1323,7 @@ void debug_print_parser(parser_t *self) {
1323
1323
char * token ;
1324
1324
1325
1325
for (line = 0 ; line < self -> lines ; ++ line ) {
1326
- printf ("(Parsed) Line %zu : " , line );
1326
+ printf ("(Parsed) Line %d : " , line );
1327
1327
1328
1328
for (j = 0 ; j < self -> line_fields [j ]; ++ j ) {
1329
1329
token = self -> words [j + self -> line_start [line ]];
0 commit comments