summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-03-08 06:06:14 -0800
committerKaz Kylheku <kaz@kylheku.com>2018-03-08 06:06:14 -0800
commit18bd289d8deadce78123cc54f3730b9d78883f22 (patch)
tree982633a0f57cf81e0a3393d5e98bffefe563eff6 /lib.c
parentf71e47cda8418d11cef36d874e5d50835ceead02 (diff)
downloadtxr-18bd289d8deadce78123cc54f3730b9d78883f22.tar.gz
txr-18bd289d8deadce78123cc54f3730b9d78883f22.tar.bz2
txr-18bd289d8deadce78123cc54f3730b9d78883f22.zip
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.
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c1
1 files changed, 1 insertions, 0 deletions
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);
}