mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 07:49:12 +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
|
if l>h then
|
||||||
goto error;
|
goto error;
|
||||||
until false;
|
until false;
|
||||||
|
code:=0;
|
||||||
fpc_val_enum_shortstr:=sorted_array[m-1].o;
|
fpc_val_enum_shortstr:=sorted_array[m-1].o;
|
||||||
exit;
|
exit;
|
||||||
error:
|
error:
|
||||||
|
Loading…
Reference in New Issue
Block a user