The attached patch fixes signed/unsigned mix in calltips.c:expandAllTabs()
The caller (also inside calltips.c) still has a signed-to -unsigned conversion 
because BufGetTabDistance() still returns a plain int, because 
window->tabDist still is a plain int, because I don't want to change that 
now.
diff -r -U3 nedit.isj10/source/calltips.c nedit.isj11/source/calltips.c
--- nedit.isj10/source/calltips.c       2004-10-18 21:27:24.000000000 +0200
+++ nedit.isj11/source/calltips.c       2007-10-17 21:16:02.000000000 +0200
@@ -48,7 +48,7 @@
 #include "../debug.h"
 #endif
 
-static char *expandAllTabs( char *text, int tab_width );
+static char *expandAllTabs( char *text, size_t tab_width );
 
 /*
 ** Pop-down a calltip if one exists, else do nothing
@@ -191,8 +191,8 @@
 ** is to prevent tabs from turning into squares in calltips, not to get the
 ** formatting just right.
 */
-static char *expandAllTabs( char *text, int tab_width ) {
-    int i, len, nTabs=0;
+static char *expandAllTabs( char *text, size_t tab_width ) {
+    size_t i, len, nTabs=0;
     char *c, *cCpy, *textCpy;
     
     /* First count 'em */
-- 
NEdit Develop mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/develop

Reply via email to