* also return 0 when reading an unsigned integer at the end of a file

git-svn-id: trunk@2156 -
This commit is contained in:
Jonas Maebe 2006-01-04 12:07:21 +00:00
parent 58381ff7b6
commit a67f42a3e7

View File

@ -1082,9 +1082,14 @@ Begin
exit;
ReadNumeric(f,hs);
end;
val(hs,u,code);
If code<>0 Then
InOutRes:=106;
if (hs = '') then
u := 0
else
begin
val(hs,u,code);
If code<>0 Then
InOutRes:=106;
end;
End;