2
0
Эх сурвалжийг харах

* Use extended for bestreal type if GENERIC_CPU is defined

git-svn-id: trunk@17954 -
pierre 14 жил өмнө
parent
commit
2f7a57fcab
1 өөрчлөгдсөн 4 нэмэгдсэн , 0 устгасан
  1. 4 0
      compiler/constexp.pas

+ 4 - 0
compiler/constexp.pas

@@ -57,11 +57,15 @@ var   internalerror:errorproc;
 
 {Same issue, avoid dependency on cpuinfo because the cpu directory isn't
  searched during utils building.}
+{$ifdef GENERIC_CPU}
+type  bestreal=extended;
+{$else}
 {$ifdef x86}
 type  bestreal=extended;
 {$else}
 type  bestreal=double;
 {$endif}
+{$endif}
 
 operator := (const u:qword):Tconstexprint;inline;
 operator := (const s:int64):Tconstexprint;inline;