Browse Source

* adapt exponent used in test to supported float type

git-svn-id: trunk@26304 -
florian 11 years ago
parent
commit
4258fe6765
1 changed files with 6 additions and 1 deletions
  1. 6 1
      tests/webtbs/tw3161.pp

+ 6 - 1
tests/webtbs/tw3161.pp

@@ -19,7 +19,12 @@ begin
   try
   try
  { When I don't do "uses Libc",
  { When I don't do "uses Libc",
    this line raises RE 205 (EOverflow). }
    this line raises RE 205 (EOverflow). }
- A:=1e800; Writeln(Exp(A));
+{$ifdef FPC_SUPPORT_EXTENDED}
+ A:=1e800;
+{$else FPC_SUPPORT_EXTENDED}
+ A:=1e200;
+{$endif FPC_SUPPORT_EXTENDED}
+ Writeln(Exp(A));
  except
  except
    writeln('Exception raised');
    writeln('Exception raised');
    err:=false;
    err:=false;