On Wed, Apr 10, 2019 at 10:48 AM Peter Stephenson 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.