summaryrefslogtreecommitdiff
path: root/toc.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2019-10-02 20:32:03 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2019-10-02 20:32:03 -0400
commitf2ca07e37241e492c271f79633505c78b49f44a2 (patch)
treee2a8f4d710def32ae957937e4f9ad39345c22fb7 /toc.c
parentc5e01140d570f2712a6ad77028477ed789ffb0b6 (diff)
eval casting
Diffstat (limited to 'toc.c')
-rw-r--r--toc.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/toc.c b/toc.c
index 8bc8c06..dc8204d 100644
--- a/toc.c
+++ b/toc.c
@@ -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"