1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2025-08-07 18:25:03 +00:00

Sanbox broken with w->[x] = ??. plasm broken with w->2 = ??

This commit is contained in:
David Schmenk
2016-11-21 16:41:17 -08:00
parent 5e7408c980
commit bf3e1f668f
2 changed files with 13 additions and 9 deletions

View File

@@ -638,6 +638,12 @@ int parse_value(int rvalue)
ref_type = (scantoken == PTRB_TOKEN) ? BPTR_TYPE : WPTR_TYPE;
if (!parse_const(&ref_offset))
scan_rewind(tokenstr);
if (ref_offset != 0)
{
emit_const(ref_offset);
emit_op(ADD_TOKEN);
ref_offset = 0;
}
break;
case DOT_TOKEN:
case COLON_TOKEN:

View File

@@ -3290,8 +3290,6 @@ def parse_value(rvalue)
emit_op($02)
ref_offset = 0
fin
if ref_type & BPTR_TYPE; emit_lb
elsif ref_type & WPTR_TYPE; emit_lw; fin
fin
while parse_expr
if token <> COMMA_TKN