X-Git-Url: http://andersk.mit.edu/gitweb/libyaml.git/blobdiff_plain/2b8b563222293e2cc410cd7fd9cb31f05622d97e..fc2dd942fc61ae135b7e2bfe5c248b1f15b74547:/tests/example-deconstructor.c diff --git a/tests/example-deconstructor.c b/tests/example-deconstructor.c index e904201..e048ee6 100644 --- a/tests/example-deconstructor.c +++ b/tests/example-deconstructor.c @@ -1033,42 +1033,42 @@ parser_error: case YAML_READER_ERROR: if (parser.problem_value != -1) { - fprintf(stderr, "Reader error: %s: #%X at %zu\n", parser.problem, - parser.problem_value, parser.problem_offset); + fprintf(stderr, "Reader error: %s: #%X at %ld\n", parser.problem, + parser.problem_value, (long)parser.problem_offset); } else { - fprintf(stderr, "Reader error: %s at %zu\n", parser.problem, - parser.problem_offset); + fprintf(stderr, "Reader error: %s at %ld\n", parser.problem, + (long)parser.problem_offset); } break; case YAML_SCANNER_ERROR: if (parser.context) { - fprintf(stderr, "Scanner error: %s at line %lu, column %lu\n" - "%s at line %lu, column %lu\n", parser.context, - parser.context_mark.line+1, parser.context_mark.column+1, - parser.problem, parser.problem_mark.line+1, - parser.problem_mark.column+1); + fprintf(stderr, "Scanner error: %s at line %d, column %d\n" + "%s at line %d, column %d\n", parser.context, + (int)parser.context_mark.line+1, (int)parser.context_mark.column+1, + parser.problem, (int)parser.problem_mark.line+1, + (int)parser.problem_mark.column+1); } else { - fprintf(stderr, "Scanner error: %s at line %lu, column %lu\n", - parser.problem, parser.problem_mark.line+1, - parser.problem_mark.column+1); + fprintf(stderr, "Scanner error: %s at line %d, column %d\n", + parser.problem, (int)parser.problem_mark.line+1, + (int)parser.problem_mark.column+1); } break; case YAML_PARSER_ERROR: if (parser.context) { - fprintf(stderr, "Parser error: %s at line %lu, column %lu\n" - "%s at line %lu, column %lu\n", parser.context, - parser.context_mark.line+1, parser.context_mark.column+1, - parser.problem, parser.problem_mark.line+1, - parser.problem_mark.column+1); + fprintf(stderr, "Parser error: %s at line %d, column %d\n" + "%s at line %d, column %d\n", parser.context, + (int)parser.context_mark.line+1, (int)parser.context_mark.column+1, + parser.problem, (int)parser.problem_mark.line+1, + (int)parser.problem_mark.column+1); } else { - fprintf(stderr, "Parser error: %s at line %lu, column %lu\n", - parser.problem, parser.problem_mark.line+1, - parser.problem_mark.column+1); + fprintf(stderr, "Parser error: %s at line %d, column %d\n", + parser.problem, (int)parser.problem_mark.line+1, + (int)parser.problem_mark.column+1); } break;