]> andersk Git - libyaml.git/blobdiff - src/emitter.c
Fix a bug in the emitter introduced while fixing warnings for VC6.
[libyaml.git] / src / emitter.c
index 49b910a8715483020962c4c765ccb0a827f8dec3..2b928682be1c3223f34ec708d013683c11292be4 100644 (file)
@@ -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);
             }
This page took 0.292714 seconds and 4 git commands to generate.