Browse Source

* Fixed compilation on targets where sizeof(cextended)=12.

git-svn-id: trunk@23614 -
yury 12 năm trước cách đây
mục cha
commit
fd873c2ee0
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      tests/test/cg/tcalext6.pp

+ 2 - 2
tests/test/cg/tcalext6.pp

@@ -210,8 +210,8 @@ begin
     WriteLn('Failed');
 end;
 
-{$ifdef FPC_HAS_TYPE_EXTENDED}
-procedure verify(val1, val2 : extended; nr : Integer); overload;
+{$if defined(FPC_HAS_TYPE_EXTENDED) and (sizeof(double)<>sizeof(cextended))}
+procedure verify(val1, val2 : cextended; nr : Integer); overload;
 begin
   success := success and (val1 = val2);
   Write('Testing test ', nr , ', was ', val1, ', should be ', val2, '...');