(uxnasm) Fixed refs limit check
This commit is contained in:
parent
96a19b4887
commit
ea0d81a9b1
|
@ -39,7 +39,7 @@ typedef struct {
|
||||||
Uint16 llen, mlen, rlen;
|
Uint16 llen, mlen, rlen;
|
||||||
Label labels[0x400];
|
Label labels[0x400];
|
||||||
Macro macros[0x100];
|
Macro macros[0x100];
|
||||||
Reference refs[0x400];
|
Reference refs[0x800];
|
||||||
char scope[0x40];
|
char scope[0x40];
|
||||||
} Program;
|
} Program;
|
||||||
|
|
||||||
|
@ -179,7 +179,7 @@ makereference(char *scope, char *label, char rune, Uint16 addr)
|
||||||
{
|
{
|
||||||
char subw[0x40], parent[0x40];
|
char subw[0x40], parent[0x40];
|
||||||
Reference *r;
|
Reference *r;
|
||||||
if(p.rlen == 0x1000)
|
if(p.rlen >= 0x800)
|
||||||
return error("References limit exceeded", label);
|
return error("References limit exceeded", label);
|
||||||
r = &p.refs[p.rlen++];
|
r = &p.refs[p.rlen++];
|
||||||
if(label[0] == '&') {
|
if(label[0] == '&') {
|
||||||
|
|
Loading…
Reference in New Issue