diff options
| author | Federico Angelilli <code@fedang.net> | 2024-10-17 00:08:08 +0200 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-10-17 00:08:08 +0200 |
| commit | 38c2c32f09bfc382d4161ea2f6fe305de29687e6 (patch) | |
| tree | 773e0300b4a9b4c33accf8a966846142cc98dcc4 | |
| parent | 1ac759a9f9650fd961f366ef646a757d5119e8e4 (diff) | |
Fix cast in any_sexp
| -rw-r--r-- | any_sexp.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |
