summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-07-08 19:06:29 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-07-08 19:06:29 -0700
commitc0a9036d15d9f0a910aab82905e6b5e7d6ce71da (patch)
tree614d18e2f89ece718ca48017e2a3f49d82fb8c42 /lib.h
parent53d6dc469c43127f498283a59194d4fbefead19e (diff)
downloadtxr-c0a9036d15d9f0a910aab82905e6b5e7d6ce71da.tar.gz
txr-c0a9036d15d9f0a910aab82905e6b5e7d6ce71da.tar.bz2
txr-c0a9036d15d9f0a910aab82905e6b5e7d6ce71da.zip
type: MAXTYPE doesn't account for DARG.
* lib.h (enum type): Change MAX_TYPE to correctly alias the last type DARG, rather than the second-to-last TNOD type. * lib.c (seq_kind_tab): Include an entry for DARG, mapping to SEQ_NOTSEQ.
Diffstat (limited to 'lib.h')
-rw-r--r--lib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.h b/lib.h
index 41181f6c..6a6c0841 100644
--- a/lib.h
+++ b/lib.h
@@ -67,7 +67,7 @@ typedef double_uintptr_t dbl_ucnum;
typedef enum type {
NIL = TAG_PTR, NUM = TAG_NUM, CHR = TAG_CHR, LIT = TAG_LIT, CONS,
STR, SYM, PKG, FUN, VEC, LCONS, LSTR, COBJ, CPTR, ENV,
- BGNUM, FLNUM, RNG, BUF, TNOD, DARG, MAXTYPE = TNOD
+ BGNUM, FLNUM, RNG, BUF, TNOD, DARG, MAXTYPE = DARG
/* If extending, check TYPE_SHIFT and all ocurrences of MAX_TYPE */
} type_t;