diff options
author | Kirill Simonov <xi@resolvent.net> | 2014-01-12 21:44:24 -0600 |
---|---|---|
committer | Kirill Simonov <xi@resolvent.net> | 2014-01-12 21:44:24 -0600 |
commit | f56726b996a296c89aaf5912e1d789188d9fc019 (patch) | |
tree | 1e752638cb68465e410f4d9c5e980a155d2751e1 | |
parent | 01e8dadf4c67ec14e16057d725caee991414a502 (diff) | |
download | libyaml-git-f56726b996a296c89aaf5912e1d789188d9fc019.tar.gz |
Fixed invalid size_t->int cast (Thank to Florian Weimer).
-rw-r--r-- | src/scanner.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |