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 | 7d1b146dae4df6b07ba991a94b4b054c51dc7fe8 (patch) | |
tree | 1e752638cb68465e410f4d9c5e980a155d2751e1 | |
parent | 0193c166b6f0c71f182052cf412f7bd22b6e4fd5 (diff) | |
download | libyaml-hg-7d1b146dae4df6b07ba991a94b4b054c51dc7fe8.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; |