summaryrefslogtreecommitdiff
path: root/py/vstr.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-01-16 17:47:07 +0000
committerDamien George <damien.p.george@gmail.com>2015-01-16 17:47:07 +0000
commit963a5a3e82ded7ee75adae72ae7cb14796fa150e (patch)
tree78402c85b98c1c8f1889d7af7dc6f4828a8f55a5 /py/vstr.c
parentf12ea7c7ed1ef97ee48c4356dbbc808cc2bdee4a (diff)
py, unix: Allow to compile with -Wsign-compare.
See issue #699.
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 e87aef9e4..1f9f13637 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;
}