Skip to content

Commit

Permalink
Fixed invalid size_t->int cast (Thank to Florian Weimer).
Browse files Browse the repository at this point in the history
  • Loading branch information
xitology committed Jan 13, 2014
1 parent 01e8dad commit f56726b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scanner.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f56726b

Please sign in to comment.