From f56726b996a296c89aaf5912e1d789188d9fc019 Mon Sep 17 00:00:00 2001 From: Kirill Simonov Date: Sun, 12 Jan 2014 21:44:24 -0600 Subject: [PATCH] Fixed invalid size_t->int cast (Thank to Florian Weimer). --- src/scanner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scanner.c b/src/scanner.c index a2e8619..68fc002 100644 --- a/src/scanner.c +++ b/src/scanner.c @@ -2574,7 +2574,7 @@ yaml_parser_scan_tag_uri(yaml_parser_t *parser, int directive, /* Resize the string to include the head. */ - while (string.end - string.start <= (int)length) { + while ((size_t)(string.end - string.start) <= length) { if (!yaml_string_extend(&string.start, &string.pointer, &string.end)) { parser->error = YAML_MEMORY_ERROR; goto error; -- 2.45.2