X-Git-Url: https://jxself.org/git/?p=inform.git;a=blobdiff_plain;f=src%2Fexpressc.c;fp=src%2Fexpressc.c;h=876804b4110786f14d2cc1ff2db9f17c1f6bcfaa;hp=e6db119c32cd23378932b4eff41b98a60a483847;hb=e536ce9e39cc1bfa82ecd1d6d73f874af655f9db;hpb=18379907e684280f6e70bf5c2205c2968e56fa67 diff --git a/src/expressc.c b/src/expressc.c index e6db119..876804b 100644 --- a/src/expressc.c +++ b/src/expressc.c @@ -1,7 +1,7 @@ /* ------------------------------------------------------------------------- */ /* "expressc" : The expression code generator */ /* */ -/* Copyright (c) Graham Nelson 1993 - 2018 */ +/* Copyright (c) Graham Nelson 1993 - 2020 */ /* */ /* This file is part of Inform. */ /* */ @@ -451,7 +451,7 @@ static void access_memory_z(int oc, assembly_operand AO1, assembly_operand AO2, index_ao; int x = 0, y = 0, byte_flag = FALSE, read_flag = FALSE, from_module = FALSE; - if (AO1.marker == ARRAY_MV) + if (AO1.marker == ARRAY_MV || AO1.marker == STATIC_ARRAY_MV) { INITAO(&zero_ao); @@ -465,10 +465,16 @@ static void access_memory_z(int oc, assembly_operand AO1, assembly_operand AO2, size_ao = zero_ao; size_ao.value = -1; for (x=0; x