Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: 4.3.6-dev-2 available
- X-seq: zsh-users 13375
- From: Peter Stephenson <pws@xxxxxxx>
- To: Zsh users list <zsh-users@xxxxxxxxxx>
- Subject: Re: 4.3.6-dev-2 available
- Date: Wed, 22 Oct 2008 18:23:07 +0100
- In-reply-to: <20081022163859.GQ29756@xxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <15318.1224579280@xxxxxxx> <20081022163859.GQ29756@xxxxxxxxxxxxxxxxxxxxx>
Danek Duvall wrote:
> This fails to compile on Solaris 11 with the Sun Studio 11 compiler, with
> the following error:
>
> "zle_refresh.c", line 1796: operands have incompatible types:
> const struct {long chr, int atr} ":" struct {long chr, int atr
> }
> cc: acomp failed for zle_refresh.c
Easy to fix.
Index: Src/Zle/zle_refresh.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_refresh.c,v
retrieving revision 1.71
diff -u -r1.71 zle_refresh.c
--- Src/Zle/zle_refresh.c 22 Jul 2008 19:54:29 -0000 1.71
+++ Src/Zle/zle_refresh.c 22 Oct 2008 17:21:46 -0000
@@ -1793,7 +1793,10 @@
ZR_memcpy(p1, nl, nllen);
ZR_memset(p1 + nllen, zr_sp, winw - nllen);
p1[winw] = zr_zr;
- p1[winw + 1] = (nllen < winw) ? zr_zr : nl[winw + 1];
+ if (nllen < winw)
+ p1[winw + 1] = zr_zr;
+ else
+ p1[winw + 1] = nl[winw + 1];
if (ln && nbuf[ln])
ZR_memcpy(nl, p1, winw + 2); /* next time obuf will be up-to-date */
else
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
Messages sorted by:
Reverse Date,
Date,
Thread,
Author