From 2f1f4fd7e61baa5d86685a35c338fc225a8f073b Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Mon, 25 Mar 2019 06:47:47 -0700 Subject: plus: missing breaks. * arith.c (plus): Add missing break statements to two switch cases. One is at the end, where it is not strictly necessary. The other omission is harmless also and may have been deliberate, though not commented by a /* fallthrough */. The other functions with this same pattern, namely minus, has the breaks. --- arith.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arith.c b/arith.c index 05814e37..28e61242 100644 --- a/arith.c +++ b/arith.c @@ -604,9 +604,11 @@ tail: case TAG_PAIR(TAG_CHR, TAG_PTR): if (type(bnum) == RNG) return rcons(plus(anum, from(bnum)), plus(anum, to(bnum))); + break; case TAG_PAIR(TAG_PTR, TAG_CHR): if (type(anum) == RNG) return rcons(plus(from(anum), bnum), plus(to(anum), bnum)); + break; } invalid_ops(self, anum, bnum); char_range: -- cgit v1.2.3