aboutsummaryrefslogtreecommitdiffhomepage
path: root/lex.h
diff options
context:
space:
mode:
Diffstat (limited to 'lex.h')
-rw-r--r--lex.h2
1 files changed, 1 insertions, 1 deletions
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;
}