[WRITER][LABEL] ULTIMO ERROR TONTO LO JURO (MENTIRA)

This commit is contained in:
fsandalinas 2022-09-16 22:42:10 +00:00
parent 9ea69a665b
commit c5633c9144
1 changed files with 1 additions and 1 deletions

View File

@ -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;