summaryrefslogtreecommitdiffhomepage
path: root/types.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-04-26 14:16:25 +0200
committerJo-Philipp Wich <jo@mein.io>2021-04-26 16:10:53 +0200
commitd5dd183f3622002fbc4ae175045a3ebce4eeeb05 (patch)
tree4ae8cd1a084b937fa7bc5919c42fd5f67889c1ff /types.c
parent28825acae8ee95543d4dc4f2c38e9711d4d4a420 (diff)
treewide: address various sign-compare warnings
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'types.c')
-rw-r--r--types.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/types.c b/types.c
index 4e17025..e786fb1 100644
--- a/types.c
+++ b/types.c
@@ -356,7 +356,7 @@ ucv_stringbuf_new(void)
}
};
- printbuf_memappend_fast(sb, (char *)&ustr, sizeof(ustr));
+ printbuf_memappend_fast(sb, (char *)&ustr, (int)sizeof(ustr));
return sb;
}
@@ -1397,7 +1397,7 @@ ucv_call_tostring(uc_vm *vm, uc_stringbuf_t *pb, uc_value_t *uv, bool json)
void
_ucv_stringbuf_append(uc_stringbuf_t *pb, const char *str, size_t len)
{
- printbuf_memappend_fast(pb, str, len);
+ printbuf_memappend_fast(pb, str, (int)len);
}
void