mirror of
https://github.com/dschmenk/PLASMA.git
synced 2025-02-08 12:31:09 +00:00
Fix check for duplicate CASE and updates images
This commit is contained in:
parent
423ca66fc0
commit
5c9bc34844
BIN
PLASMA-BLD2.PO
BIN
PLASMA-BLD2.PO
Binary file not shown.
BIN
PLASMA-DEM2.PO
BIN
PLASMA-DEM2.PO
Binary file not shown.
BIN
PLASMA-SOS2.PO
BIN
PLASMA-SOS2.PO
Binary file not shown.
BIN
PLASMA-SYS2.PO
BIN
PLASMA-SYS2.PO
Binary file not shown.
@ -1069,7 +1069,7 @@ int parse_stmnt(void)
|
|||||||
casetag[i] = casetag[i-1];
|
casetag[i] = casetag[i-1];
|
||||||
i--;
|
i--;
|
||||||
}
|
}
|
||||||
if (casecnt && (caseval[i] == constval))
|
if ((i < casecnt) && (caseval[i] == constval))
|
||||||
parse_error("Duplicate CASE");
|
parse_error("Duplicate CASE");
|
||||||
caseval[i] = constval;
|
caseval[i] = constval;
|
||||||
casetag[i] = tag_of;
|
casetag[i] = tag_of;
|
||||||
|
@ -821,7 +821,7 @@ def parse_stmnt
|
|||||||
casetag=>[i] = casetag=>[i-1]
|
casetag=>[i] = casetag=>[i-1]
|
||||||
i--
|
i--
|
||||||
loop
|
loop
|
||||||
if casecnt and caseval=>[i] == caseconst; exit_err(ERR_DUP|ERR_STATE); fin
|
if i < casecnt and caseval=>[i] == caseconst; exit_err(ERR_DUP|ERR_STATE); fin
|
||||||
caseval=>[i] = caseconst
|
caseval=>[i] = caseconst
|
||||||
casetag=>[i] = tag_of
|
casetag=>[i] = tag_of
|
||||||
casecnt++
|
casecnt++
|
||||||
|
Loading…
x
Reference in New Issue
Block a user