mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 18:39:30 +02:00
* set code to 0 in case val(enum) does not encounter an error
git-svn-id: trunk@10951 -
This commit is contained in:
parent
87aa666768
commit
063af15a0c
@ -1194,6 +1194,7 @@ begin
|
||||
if l>h then
|
||||
goto error;
|
||||
until false;
|
||||
code:=0;
|
||||
fpc_val_enum_shortstr:=sorted_array[m-1].o;
|
||||
exit;
|
||||
error:
|
||||
|
Loading…
Reference in New Issue
Block a user