Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "error.h"

#include <assert.h>
#include <inttypes.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
Expand Down Expand Up @@ -171,11 +172,11 @@ void gumbo_error_to_string(
switch (error->type) {
case GUMBO_ERR_UTF8_INVALID:
print_message(
parser, output, "Invalid UTF8 character 0x%x", error->v.codepoint);
parser, output, "Invalid UTF8 character 0x%" PRIx64, error->v.codepoint);
break;
case GUMBO_ERR_UTF8_TRUNCATED:
print_message(parser, output,
"Input stream ends with a truncated UTF8 character 0x%x",
"Input stream ends with a truncated UTF8 character 0x%" PRIx64,
error->v.codepoint);
break;
case GUMBO_ERR_NUMERIC_CHAR_REF_NO_DIGITS:
Expand All @@ -184,13 +185,13 @@ void gumbo_error_to_string(
break;
case GUMBO_ERR_NUMERIC_CHAR_REF_WITHOUT_SEMICOLON:
print_message(parser, output,
"The numeric character reference &#%d should be followed "
"The numeric character reference &#%" PRId64 " should be followed "
"by a semicolon",
error->v.codepoint);
break;
case GUMBO_ERR_NUMERIC_CHAR_REF_INVALID:
print_message(parser, output,
"The numeric character reference &#%d; encodes an invalid "
"The numeric character reference &#%" PRId64 "; encodes an invalid "
"unicode codepoint",
error->v.codepoint);
break;
Expand Down
Loading