mirror of
https://github.com/dschmenk/PLASMA.git
synced 2025-01-22 08:31:36 +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];
|
||||
i--;
|
||||
}
|
||||
if (casecnt && (caseval[i] == constval))
|
||||
if ((i < casecnt) && (caseval[i] == constval))
|
||||
parse_error("Duplicate CASE");
|
||||
caseval[i] = constval;
|
||||
casetag[i] = tag_of;
|
||||
|
@ -821,7 +821,7 @@ def parse_stmnt
|
||||
casetag=>[i] = casetag=>[i-1]
|
||||
i--
|
||||
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
|
||||
casetag=>[i] = tag_of
|
||||
casecnt++
|
||||
|
Loading…
x
Reference in New Issue
Block a user