From 8d14b4bbc6f1e50f313293ba301268fbc7d9090e Mon Sep 17 00:00:00 2001 From: neauoire Date: Thu, 17 Jun 2021 21:20:19 -0700 Subject: [PATCH] Fixed critical issue where a label/macro with more than 255 refs would vanish --- src/uxnasm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/uxnasm.c b/src/uxnasm.c index e6e3fb4..64493d4 100644 --- a/src/uxnasm.c +++ b/src/uxnasm.c @@ -19,13 +19,13 @@ typedef unsigned short Uint16; typedef struct { char name[64], items[128][64]; - Uint8 len, refs; + Uint8 len; + Uint16 refs; } Macro; typedef struct { char name[64]; - Uint8 refs; - Uint16 addr; + Uint16 addr, refs; } Label; typedef struct {