From 7d1b146dae4df6b07ba991a94b4b054c51dc7fe8 Mon Sep 17 00:00:00 2001 From: Kirill Simonov Date: Sun, 12 Jan 2014 21:44:24 -0600 Subject: Fixed invalid size_t->int cast (Thank to Florian Weimer). --- src/scanner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.1