Fuzix-Compiler-Kit icon indicating copy to clipboard operation
Fuzix-Compiler-Kit copied to clipboard

be-code-6800.c write_uni_op() breaks the stack if the destination of the assignment is a char.

Open zu2 opened this issue 4 months ago • 0 comments

--- ../Fuzix-Compiler-Kit/be-code-6800.c	2024-10-11 05:18:39
+++ be-code-6800.c	2024-10-11 17:44:23
@@ -714,7 +714,7 @@
 	case T_LSTORE:
 	case T_LREF:
 		off = make_local_ptr(v + off, 254);
-		uniop_on_ptr(op, off, 2);
+		uniop_on_ptr(op, off, s);
 		break;
 	case T_LBSTORE:
 	case T_LBREF:

zu2 avatar Oct 11 '24 08:10 zu2