~rabbits/uxn11

3fda89b6093dd508c08c652c0bc60d42934c3ba4 — Devine Lu Linvega 2 months ago da54634
(uxnasm) Catch missized #hex
1 files changed, 2 insertions(+), 2 deletions(-)

M src/uxnasm.c
M src/uxnasm.c => src/uxnasm.c +2 -2
@@ 258,9 258,9 @@ writehex(char *w, Context *ctx)
{
	if(*w == '#')
		writebyte(findopcode("LIT") | !!(++w)[2] << 5, ctx);
	if(!w[2])
	if(w[1] && !w[2])
		return writebyte(shex(w), ctx);
	else if(!w[4])
	else if(w[3] && !w[4])
		return writeshort(shex(w));
	else
		return 0;