summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-07-09 08:25:21 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-07-09 08:25:21 -0700
commitc8072082c2b5c2263404902db32ce1b98c9756b7 (patch)
treed84764457cdcedd4c83e1ac0a8a6516e4199adc7
parent6d05602d014d06c44a28d32ffd4ad0effe9759c9 (diff)
downloadtxr-c8072082c2b5c2263404902db32ce1b98c9756b7.tar.gz
txr-c8072082c2b5c2263404902db32ce1b98c9756b7.tar.bz2
txr-c8072082c2b5c2263404902db32ce1b98c9756b7.zip
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.
-rw-r--r--lib.c2
1 files changed, 1 insertions, 1 deletions
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);