diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-08-10 16:03:00 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-08-10 16:03:00 -0400 |
| commit | 671f81137ee2e5de632526109e02c4b79197e432 (patch) | |
| tree | 36c43d1d4de679d1e2544723ef0b6020df13731d /builtins | |
| parent | 8d3d5913129a8ede381462d5ad5e98f9c789e5c8 (diff) | |
Make Num32/Num64 literals explicitly typed to aid in macros using
__typeof
Diffstat (limited to 'builtins')
| -rw-r--r-- | builtins/nums.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/builtins/nums.h b/builtins/nums.h index ec1663a2..b426f6ef 100644 --- a/builtins/nums.h +++ b/builtins/nums.h @@ -11,6 +11,8 @@ #define Num_t double #define Num32_t float +#define N32(n) ((float)n) +#define N64(n) ((double)n) CORD Num$as_text(const double *f, bool colorize, const TypeInfo *type); int32_t Num$compare(const double *x, const double *y, const TypeInfo *type); |
