Browse code

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

neauoire authored on 18/06/2021 04:20:19
Showing 1 changed files
... ...
@@ -19,13 +19,13 @@ typedef unsigned short Uint16;
19 19
 
20 20
 typedef struct {
21 21
 	char name[64], items[128][64];
22
-	Uint8 len, refs;
22
+	Uint8 len;
23
+	Uint16 refs;
23 24
 } Macro;
24 25
 
25 26
 typedef struct {
26 27
 	char name[64];
27
-	Uint8 refs;
28
-	Uint16 addr;
28
+	Uint16 addr, refs;
29 29
 } Label;
30 30
 
31 31
 typedef struct {