Browse Source

* fixed for cpu's where real = extended (= double)

git-svn-id: trunk@1581 -
Jonas Maebe 20 years ago
parent
commit
fa8119280b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      tests/webtbs/tw2481.pp

+ 3 - 0
tests/webtbs/tw2481.pp

@@ -21,11 +21,14 @@ Var
     B.A := V;
     B.A := V;
   End;
   End;
 
 
+{$ifdef FPC_HAS_TYPE_EXTENDED}
+{ otherwise extended = real = double }
   Operator := (V : Extended) B : TMoo;
   Operator := (V : Extended) B : TMoo;
   Begin
   Begin
     B:=TMoo.Create;
     B:=TMoo.Create;
     B.A := V;
     B.A := V;
   End;
   End;
+{$endif FPC_HAS_TYPE_EXTENDED}
 
 
 Constructor TMoo.Init;
 Constructor TMoo.Init;
 Begin
 Begin