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

Re: -Wrestrict warning on cc 8.3.0



On Wed, Apr 10, 2019 at 10:48 AM Peter Stephenson <p.stephenson@xxxxxxxxxxx>
wrote:

> On Thu, 2019-04-04 at 11:21 +0100, Peter Stephenson wrote:
>
> > Can somebody verify the following is equivalent apart from dealing with
> > a possible overlapping copy?  I've no way of ensuring this code gets
> > exercised.
>
> I've applied this anyway.
>

I'm pretty sure your code is equivalent to the original (apart from being
correct if ranges overlap). It's also easier to understand.

Roman.


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