瀏覽代碼

* Float constants must be pooled using their the actual type, not the mapped type of assembler instruction. Otherwise e.g. extended may be mixed up with cextended, because both are mapped to ait_real_80bit.

git-svn-id: trunk@17787 -
sergei 14 年之前
父節點
當前提交
3dba3a0219
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      compiler/ncgcon.pas

+ 2 - 2
compiler/ncgcon.pas

@@ -116,7 +116,7 @@ implementation
       type
       type
         tfloatkey = record
         tfloatkey = record
           value: bestreal;
           value: bestreal;
-          aitype: taitype;
+          typ: tfloattype;
           swapped: boolean;
           swapped: boolean;
         end;
         end;
 
 
@@ -145,7 +145,7 @@ implementation
             { there may be gap between record fields, zero it out }
             { there may be gap between record fields, zero it out }
             fillchar(key,sizeof(key),0);
             fillchar(key,sizeof(key),0);
             key.value:=value_real;
             key.value:=value_real;
-            key.aitype:=realait;
+            key.typ:=tfloatdef(resultdef).floattype;
 {$ifdef ARM}
 {$ifdef ARM}
             key.swapped:=hiloswapped;
             key.swapped:=hiloswapped;
 {$endif ARM}
 {$endif ARM}