blob: 130107341f7f2eb3a91d3682b7555b2990f5c38a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- a/src/scanner.c
+++ a/src/scanner.c
@@ -2574,7 +2574,7 @@
/* 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;
|