浏览代码

* fixed wrong conversions from real to currency/int64 for x86

git-svn-id: trunk@2954 -
Jonas Maebe 19 年之前
父节点
当前提交
ac11ab43a2
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      compiler/ncnv.pas

+ 2 - 2
compiler/ncnv.pas

@@ -1659,9 +1659,9 @@ implementation
         case left.nodetype of
           realconstn :
             begin
-              if is_currency(resulttype.def) then
+              if (convtype = tc_real_2_currency) then
                 result := resulttype_real_to_currency
-              else if (resulttype.def.deftype = floatdef) then
+              else if (convtype = tc_real_2_real) then
                 result := resulttype_real_to_real
               else
                 exit;