diff options
author | Kirill Simonov <xi@resolvent.net> | 2007-01-07 22:51:10 +0000 |
---|---|---|
committer | Kirill Simonov <xi@resolvent.net> | 2007-01-07 22:51:10 +0000 |
commit | 0174ed6e0abc4b9316a91d32163f2507a31d29fb (patch) | |
tree | bbc9a980693fc732624fd28209568b74ad81c95d /src/emitter.c | |
parent | e27a3c886ebe97dda5b6f961b04949bb3003d4a6 (diff) | |
download | libyaml-git-0174ed6e0abc4b9316a91d32163f2507a31d29fb.tar.gz |
Add win32 fixes and project files for VC6.
Diffstat (limited to 'src/emitter.c')
-rw-r--r-- | src/emitter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emitter.c b/src/emitter.c index 0affaab..49b910a 100644 --- a/src/emitter.c +++ b/src/emitter.c @@ -1419,7 +1419,7 @@ yaml_emitter_analyze_tag(yaml_emitter_t *emitter, for (tag_directive = emitter->tag_directives.start; tag_directive != emitter->tag_directives.top; tag_directive ++) { size_t prefix_length = strlen((char *)tag_directive->prefix); - if (prefix_length < (string.end - string.start) + if (prefix_length < (size_t)(string.end - string.start) && strncmp((char *)tag_directive->prefix, (char *)string.start, prefix_length) == 0) { @@ -2026,7 +2026,7 @@ yaml_emitter_write_double_quoted_scalar(yaml_emitter_t *emitter, unsigned char octet; unsigned int width; unsigned int value; - int k; + size_t k; octet = string.pointer[0]; width = (octet & 0x80) == 0x00 ? 1 : |