diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-07-09 08:25:21 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-07-09 08:25:21 -0700 |
commit | c8072082c2b5c2263404902db32ce1b98c9756b7 (patch) | |
tree | d84764457cdcedd4c83e1ac0a8a6516e4199adc7 | |
parent | 6d05602d014d06c44a28d32ffd4ad0effe9759c9 (diff) | |
download | txr-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |