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

Re: Bug in zsh 4.0.7



Chris Spiegel wrote:
>yyval.u.l = zstrtol(++ptr, &ptr, lastbase = 16);
>
>The issue is that it's unspecified whether ++ptr or &ptr happens first.

The expression &ptr doesn't use the value of ptr (which ++ptr modifies).
The value of &ptr is unaffected by the increment.  The behaviour is
perfectly well-defined.

-zefram



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