diff --git a/glib/gmarkup.c b/glib/gmarkup.c index bf7c00856..552773fd8 100644 --- a/glib/gmarkup.c +++ b/glib/gmarkup.c @@ -684,7 +684,7 @@ unescape_gstring_inplace (GMarkupParseContext *context, "inside a character reference " "(ê for example) - perhaps " "the digit is too large"), - end - from, from); + (int)(end - from), from); return FALSE; } else if (*end != ';') @@ -719,7 +719,7 @@ unescape_gstring_inplace (GMarkupParseContext *context, from, G_MARKUP_ERROR_PARSE, _("Character reference '%-.*s' does not " "encode a permitted character"), - end - from, from); + (int)(end - from), from); return FALSE; } } @@ -764,7 +764,7 @@ unescape_gstring_inplace (GMarkupParseContext *context, set_unescape_error (context, error, from, G_MARKUP_ERROR_PARSE, _("Entity name '%-.*s' is not known"), - end-from, from); + (int)(end - from), from); else set_unescape_error (context, error, from, G_MARKUP_ERROR_PARSE,