[WRITER][LABEL] ULTIMO ERROR TONTO LO JURO (MENTIRA)
This commit is contained in:
parent
9ea69a665b
commit
c5633c9144
|
@ -79,7 +79,7 @@ out_file() {
|
|||
if (def > 0) {
|
||||
// printf("Label ref:%s at p:%d defined in p:%d\n", ref->name, ref->pos, def->pos);
|
||||
u8 *pos = (u8 *)(&def->pos);
|
||||
for (int i = 0; i < 4; i++) file_buff.data[i + ref->pos] = pos;
|
||||
for (int i = 0; i < 4; i++) file_buff.data[i + ref->pos] = pos[i];
|
||||
} else {
|
||||
printf("Label ref:%s at p:%d not defined, fatal err\n", ref->name, ref->pos);
|
||||
err = 1;
|
||||
|
|
Loading…
Reference in New Issue