aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2024-10-17 00:08:08 +0200
committerFederico Angelilli <code@fedang.net>2024-10-17 00:08:08 +0200
commit38c2c32f09bfc382d4161ea2f6fe305de29687e6 (patch)
tree773e0300b4a9b4c33accf8a966846142cc98dcc4
parent1ac759a9f9650fd961f366ef646a757d5119e8e4 (diff)
Fix cast in any_sexp
-rw-r--r--any_sexp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/any_sexp.h b/any_sexp.h
index c8a394d..09e18bb 100644
--- a/any_sexp.h
+++ b/any_sexp.h
@@ -52,7 +52,7 @@ typedef struct any_sexp {
#define ANY_SEXP_ERROR ((any_sexp_t) { .tag = ANY_SEXP_TAG_ERROR })
#define ANY_SEXP_NIL ((any_sexp_t) { .tag = ANY_SEXP_TAG_NIL })
-#define ANY_SEXP_GET_TAG(sexp) ((sexp).tag)
+#define ANY_SEXP_GET_TAG(sexp) ((uintptr_t)(sexp).tag)
#define ANY_SEXP_GET_CONS(sexp) ((sexp).cons)
#define ANY_SEXP_GET_SYMBOL(sexp) ((sexp).symbol)
#define ANY_SEXP_GET_STRING(sexp) ((sexp).symbol)