summaryrefslogtreecommitdiff
path: root/src/emitter.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emitter.c')
-rw-r--r--src/emitter.c4
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 :