aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Lockwood2021-06-29 20:53:29 -0400
committerAlexis Lockwood2021-06-29 20:53:29 -0400
commit6553f2f6253f7843b62c413274a1f649893abfff (patch)
tree308d3a88ad170253409e13632ee9cc4a57445fa4
parent2820777a6c0dd1d4f9e44483cb5f583c2df94837 (diff)
Fix LS_ADDR_MAX
-rw-r--r--src/ls_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ls_types.h b/src/ls_types.h
index 6de28e6..8580cf3 100644
--- a/src/ls_types.h
+++ b/src/ls_types.h
@@ -49,7 +49,7 @@
/// Null placeholder for source addresses
#define LS_ADDR_NULL UINT16_MAX
-#define LS_ADDR_MAX UINT16_MAX
+#define LS_ADDR_MAX (UINT16_MAX - 1)
/// Check if a token represents the end of a statement
#define LS_TOK_EOS(tok) ((tok) == LS_TOK_STATEMENT_SEP || \