uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 8d14b4bbc6f1e50f313293ba301268fbc7d9090e
parent 8d092bf1bc080c8b434d4e1528d79395d8c8a2d7
Author: neauoire <aliceffekt@gmail.com>
Date:   Thu, 17 Jun 2021 21:20:19 -0700

Fixed critical issue where a label/macro with more than 255 refs would vanish

Diffstat:
Msrc/uxnasm.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 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 {