* set code to 0 in case val(enum) does not encounter an error

git-svn-id: trunk@10951 -
This commit is contained in:
Jonas Maebe 2008-05-12 10:19:53 +00:00
parent 87aa666768
commit 063af15a0c

View File

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