From 071329aef541027cb9a1cadd92387dd577789b4d Mon Sep 17 00:00:00 2001 From: Kirill Simonov Date: Mon, 8 Jan 2007 12:27:08 +0000 Subject: [PATCH] Fix a bug in the emitter introduced while fixing warnings for VC6. --- src/emitter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emitter.c b/src/emitter.c index 49b910a..2b92868 100644 --- a/src/emitter.c +++ b/src/emitter.c @@ -2026,7 +2026,7 @@ yaml_emitter_write_double_quoted_scalar(yaml_emitter_t *emitter, unsigned char octet; unsigned int width; unsigned int value; - size_t k; + int k; octet = string.pointer[0]; width = (octet & 0x80) == 0x00 ? 1 : @@ -2037,7 +2037,7 @@ yaml_emitter_write_double_quoted_scalar(yaml_emitter_t *emitter, (octet & 0xE0) == 0xC0 ? octet & 0x1F : (octet & 0xF0) == 0xE0 ? octet & 0x0F : (octet & 0xF8) == 0xF0 ? octet & 0x07 : 0; - for (k = 1; k < width; k ++) { + for (k = 1; k < (int)width; k ++) { octet = string.pointer[k]; value = (value << 6) + (octet & 0x3F); } -- 2.45.2