From 18ff8550c7eda93d95538f8622b2760a31395a95 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Wed, 11 Jan 2023 21:02:29 -0800 Subject: [PATCH] (uxnasm) Use correct address in symbol export --- src/uxnasm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uxnasm.c b/src/uxnasm.c index 7c9e7b5..48c1e7b 100644 --- a/src/uxnasm.c +++ b/src/uxnasm.c @@ -452,7 +452,7 @@ writesym(char *filename) if(fp != NULL) { for(i = 0; i < p.llen; i++) { fwrite(&p.labels[i].addr + 1, 1, 1, fp); - fwrite(&p.labels[i].addr, 1, 1, fp); + fwrite((Uint8*)&p.labels[i].addr, 1, 1, fp); fwrite(p.labels[i].name, slen(p.labels[i].name) + 1, 1, fp); } }