Re: [PATCH 4/4] line-log: convert an assertion to a full BUG() call

2018-08-07 Thread Eric Sunshine
On Tue, Aug 7, 2018 at 5:09 AM Eric Sunshine wrote: > On Mon, Aug 6, 2018 at 9:15 AM Johannes Schindelin > wrote: > > I think Andrei's assessment is wrong. The code could not test for that > > earlier, as it did allow ranges to become "abutting" in the process, by > > failing to merge them. So

Re: [PATCH 4/4] line-log: convert an assertion to a full BUG() call

2018-08-07 Thread Eric Sunshine
On Mon, Aug 6, 2018 at 9:15 AM Johannes Schindelin wrote: > On Sun, 5 Aug 2018, Eric Sunshine wrote: > > Although this appears to be a faithful translation of the assert() to > > BUG(), as mentioned by Andrei in his review of 3/4, the existing > > assert() seems to have an off-by-1 error, which

Re: [PATCH 4/4] line-log: convert an assertion to a full BUG() call

2018-08-06 Thread Johannes Schindelin
Hi Eric, On Sun, 5 Aug 2018, Eric Sunshine wrote: > On Sat, Aug 4, 2018 at 6:18 PM Johannes Schindelin via GitGitGadget > wrote: > > The assertion in question really indicates a bug, when triggered, so we > > might just as well use the sanctioned method to report it. > > > > Signed-off-by:

Re: [PATCH 4/4] line-log: convert an assertion to a full BUG() call

2018-08-05 Thread Eric Sunshine
On Sat, Aug 4, 2018 at 6:18 PM Johannes Schindelin via GitGitGadget wrote: > The assertion in question really indicates a bug, when triggered, so we > might just as well use the sanctioned method to report it. > > Signed-off-by: Johannes Schindelin > --- > diff --git a/line-log.c b/line-log.c >

[PATCH 4/4] line-log: convert an assertion to a full BUG() call

2018-08-04 Thread Johannes Schindelin via GitGitGadget
From: Johannes Schindelin The assertion in question really indicates a bug, when triggered, so we might just as well use the sanctioned method to report it. Signed-off-by: Johannes Schindelin --- line-log.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/line-log.c