aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/integers.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-09-01 13:20:39 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-09-01 13:20:39 -0400
commitd6d3f5711de85ab1c21f515b9d125d316d853c92 (patch)
treedc083bbe83b2dae82c47fdd78950941d53399bad /src/stdlib/integers.c
parentdb6107c33df6a4fdb592ad29074d1159c37dc048 (diff)
parentee020c72d92c3807fa4afcd1e170d3df81688b97 (diff)
Merge branch 'main' into formatter
Diffstat (limited to 'src/stdlib/integers.c')
-rw-r--r--src/stdlib/integers.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stdlib/integers.c b/src/stdlib/integers.c
index 7dda77bd..5dc9ac55 100644
--- a/src/stdlib/integers.c
+++ b/src/stdlib/integers.c
@@ -618,6 +618,8 @@ void Int32$deserialize(FILE *in, void *outval, List_t *pointers, const TypeInfo_
return colorize ? Texts(Text("\033[35m"), text, Text("\033[m")) : text; \
} \
public \
+ Text_t KindOfInt##$value_as_text(c_type i) { return _int64_to_text((int64_t)i); } \
+ public \
PUREFUNC int32_t KindOfInt##$compare(const void *x, const void *y, const TypeInfo_t *info) { \
(void)info; \
return (*(c_type *)x > *(c_type *)y) - (*(c_type *)x < *(c_type *)y); \