diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2019-10-02 20:32:03 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2019-10-02 20:32:03 -0400 |
commit | f2ca07e37241e492c271f79633505c78b49f44a2 (patch) | |
tree | e2a8f4d710def32ae957937e4f9ad39345c22fb7 /toc.c | |
parent | c5e01140d570f2712a6ad77028477ed789ffb0b6 (diff) |
eval casting
Diffstat (limited to 'toc.c')
-rw-r--r-- | toc.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -10,10 +10,15 @@ #include <inttypes.h> #include <stdbool.h> -typedef uint64_t UInteger; typedef int64_t Integer; +typedef uint64_t UInteger; typedef long double Floating; /* OPTIM: Switch to double, but make sure floating-point literals are right */ +#define INTEGER_MAX INT64_MAX +#define UINTEGER_MAX UINT64_MAX +#define INTEGER_FMT "%"PRId64 +#define UINTEGER_FMT "%"PRIu64 + typedef uint8_t U8; typedef uint16_t U16; typedef uint32_t U32; @@ -27,9 +32,6 @@ typedef int64_t I64; typedef float F32; typedef double F64; -#define INTEGER_MAX INT64_MAX -#define UINTEGER_FMT "%"PRIu64 -#define INTEGER_FMT "%"PRId64 #include "location.c" #include "err.c" |