diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-01-23 07:05:01 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-01-23 07:05:01 +0100 |
commit | 43ff02231117bacb3cd60af0e654a0b3e8b5678b (patch) | |
tree | 0523676c9565c7536819f671304651d08c9302df /include/value.h | |
parent | cc30a97ab90a8fa40707936d3d089d81c49559b6 (diff) |
wip... there is a crash in get_or_create hash map
Diffstat (limited to 'include/value.h')
-rw-r--r-- | include/value.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/value.h b/include/value.h index 1d053b7..58e57fe 100644 --- a/include/value.h +++ b/include/value.h @@ -14,6 +14,9 @@ typedef enum { TSL_TYPE_USERDATA } TslType; +/* TODO: Support BigInt */ +typedef double TslNumber; + typedef enum { TSL_FALSE, TSL_TRUE @@ -36,7 +39,7 @@ typedef struct { typedef struct { union { - double number; + TslNumber number; TslString *string; TslBool boolean; TslList *list; |