summaryrefslogtreecommitdiffstatshomepage
path: root/py/vstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/vstr.c')
-rw-r--r--py/vstr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/vstr.c b/py/vstr.c
index e87aef9e48..1f9f13637b 100644
--- a/py/vstr.c
+++ b/py/vstr.c
@@ -350,7 +350,7 @@ void vstr_vprintf(vstr_t *vstr, const char *fmt, va_list ap) {
va_end(ap2);
// if that worked, return
- if (n > -1 && n < size) {
+ if (n > -1 && (size_t)n < size) {
vstr->len += n;
return;
}