Skip to content

Commit f56726b

Browse files
committed
Fixed invalid size_t->int cast (Thank to Florian Weimer).
1 parent 01e8dad commit f56726b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scanner.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2574,7 +2574,7 @@ yaml_parser_scan_tag_uri(yaml_parser_t *parser, int directive,
25742574

25752575
/* Resize the string to include the head. */
25762576

2577-
while (string.end - string.start <= (int)length) {
2577+
while ((size_t)(string.end - string.start) <= length) {
25782578
if (!yaml_string_extend(&string.start, &string.pointer, &string.end)) {
25792579
parser->error = YAML_MEMORY_ERROR;
25802580
goto error;

0 commit comments

Comments
 (0)