changeset 158:44e7b975618a

Fix warning in buf
author David Demelier <markand@malikania.fr>
date Mon, 23 Jul 2012 14:44:34 +0200
parents 8c7812fefe0f
children 94847374833b
files buf.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/buf.c	Fri Jul 20 13:31:58 2012 +0200
+++ b/buf.c	Mon Jul 23 14:44:34 2012 +0200
@@ -217,7 +217,7 @@
 	    (start < 0 && (int)buf->length + start < 0))
 		return;
 
-	if (start < 0 && buf->length + start >= 0)
+	if (start < 0 && (int)buf->length + start >= 0)
 		start = buf->length + start;
 
 	buf->text[start]	= '\0';