summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxi <xi@18f92427-320e-0410-9341-c67f048884a3>2007-01-08 12:27:08 +0000
committerxi <xi@18f92427-320e-0410-9341-c67f048884a3>2007-01-08 12:27:08 +0000
commit6e8d8c99d2953d928666dba43441454ebc0a0d00 (patch)
tree7c65b3f8386f036d2abd889ccee9038db292ae93
parent144952374e5c195c3870c2d2b959bea369c8a23f (diff)
downloadlibyaml-6e8d8c99d2953d928666dba43441454ebc0a0d00.tar.gz
Fix a bug in the emitter introduced while fixing warnings for VC6.
git-svn-id: http://svn.pyyaml.org/libyaml/trunk@241 18f92427-320e-0410-9341-c67f048884a3
-rw-r--r--src/emitter.c4
1 files 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);
}