1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2024-10-18 22:24:28 +00:00

Fix check for duplicate CASE and updates images

This commit is contained in:
David Schmenk 2018-03-16 16:57:42 -07:00
parent 423ca66fc0
commit 5c9bc34844
6 changed files with 2 additions and 2 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -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;

View File

@ -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++