mirror of
https://gitlab.com/c3d/db48x.git
synced 2024-09-29 05:36:58 +02:00
case: Do not lose the default condition
The default condition was dropped and replaced with an empty one. Fixes: #1168 Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
This commit is contained in:
parent
9cfca545c2
commit
f2c178aeda
1 changed files with 5 additions and 0 deletions
|
@ -427,6 +427,11 @@ PARSE_BODY(CaseStatement)
|
|||
had_end = false;
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
obj1 = prog;
|
||||
break;
|
||||
}
|
||||
} // Loop on conditions and blocks
|
||||
|
||||
// Here, either had_end, and obj1 is the tail block, or adding a cond
|
||||
|
|
Loading…
Reference in a new issue