Browse Source

* fixed for extended = double

Jonas Maebe 21 years ago
parent
commit
ad3f0e5c31
1 changed files with 6 additions and 2 deletions
  1. 6 2
      tests/webtbs/tw2226.pp

+ 6 - 2
tests/webtbs/tw2226.pp

@@ -7,10 +7,14 @@ const mindouble: double = -5.0E324;
 
 var
   s : string;
-
+  correct : string;
 begin
+  case sizeof(extended) of
+    10: correct := '                   -Inf';
+    8: correct := '                  -Inf';
+  end;
   str(mindouble,s);
-  if s<>'                   -Inf' then
+  if s<>correct then
     begin
       writeln('error');
       halt(1);