From ed59af77d762adf4579f1c8a3f908d015dfc32a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lebel?= Date: Sun, 7 Apr 2013 03:22:13 +0200 Subject: [PATCH] 64bits --- printbuf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/printbuf.h b/printbuf.h index 78029e1..beecc36 100644 --- a/printbuf.h +++ b/printbuf.h @@ -41,7 +41,7 @@ printbuf_memappend(struct printbuf *p, const char *buf, size_t size); #define printbuf_memappend_fast(p, bufptr, bufsize) \ do { \ - if ((p->size - p->bpos) > bufsize) { \ + if ((p->size - p->bpos) > (size_t)(bufsize)) { \ memcpy(p->buf + p->bpos, (bufptr), bufsize); \ p->bpos += bufsize; \ p->buf[p->bpos]= '\0'; \