From 437efda31319573dcf67337d1cc6e4a23a6967a4 Mon Sep 17 00:00:00 2001 From: lemon Date: Wed, 15 Oct 2025 10:45:12 +0200 Subject: misc --- lex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lex.h') diff --git a/lex.h b/lex.h index 3c1d431..3de4f6e 100644 --- a/lex.h +++ b/lex.h @@ -4,7 +4,7 @@ static inline bool joinspan(struct span0 *dst, struct span0 snd) { if (dst->file != snd.file) return 0; - assert(dst->off <= snd.off); + if (dst->off > snd.off) return 0; dst->len = snd.off + snd.len - dst->off; return 1; } -- cgit v1.2.3