Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: compadd




The patch from message 5145 added one of these `char used as array subscript'
gcc-warnings. To fix this...

Bye
 Sven

--- os/Zle/zle_misc.c	Wed Feb  3 12:07:21 1999
+++ Src/Zle/zle_misc.c	Wed Feb  3 12:10:02 1999
@@ -832,7 +832,7 @@
 		    suffixlen[b++] = v;
 		s += 2;
 	    } else
-		suffixlen[*s] = v;
+		suffixlen[STOUC(*s)] = v;
 	    s++;
 	}
     } else

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author