From 18bd289d8deadce78123cc54f3730b9d78883f22 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 8 Mar 2018 06:06:14 -0800 Subject: code review: switch case breaks. * arith.c (c_unum): Add fallthrough comment. (minus): Add missing break after case that handles char minus heap object.. This luckily isn't a bug because type(anum) isn't RNG, and so when it falls through, the next case also falls through. * lib.c (car): Add missing fallthrough comment. --- lib.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib.c') diff --git a/lib.c b/lib.c index 5061609c..c1329346 100644 --- a/lib.c +++ b/lib.c @@ -392,6 +392,7 @@ val car(val cons) return funcall2(lambda_meth, cons, zero); } } + /* fallthrough */ default: type_mismatch(lit("car: ~s is not a cons"), cons, nao); } -- cgit v1.2.3