From c8072082c2b5c2263404902db32ce1b98c9756b7 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 9 Jul 2021 08:25:21 -0700 Subject: lib: c++ fix. lib.c (built_in_type): Use i for stepping over the enumeration, because type_t has no postfix ++ operator for i++. The code2type function takes an int, and so no cast is required. --- lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.c b/lib.c index b0f0a64f..78b50751 100644 --- a/lib.c +++ b/lib.c @@ -211,7 +211,7 @@ static val code2type(int code) val built_in_type_p(val sym) { - type_t i; + int i; for (i = NIL; i <= MAXTYPE; i++) { val type = code2type(i); -- cgit v1.2.3