Browse Source

* compilation fixed on x86-64

git-svn-id: trunk@15756 -
florian 15 năm trước cách đây
mục cha
commit
33c67c7972
1 tập tin đã thay đổi với 7 bổ sung1 xóa
  1. 7 1
      compiler/nadd.pas

+ 7 - 1
compiler/nadd.pas

@@ -891,7 +891,13 @@ implementation
           operation on a float and int are also handled }
 {$ifdef x86}
         { use extended as default real type only when the x87 fpu is used }
-        if not(current_settings.fputype=fpu_x87) then
+{$ifdef i386}
+        if not(current_settings.fputype in [fpu_x87) then
+{$endif i386}
+{$ifdef x86_64}
+        { x86-64 has no x87 only mode, so use always double as default }
+        if true then
+{$endif x86_6}
           resultrealdef:=s64floattype
         else
 {$endif x86}