Sfoglia il codice sorgente

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

git-svn-id: trunk@2954 -
Jonas Maebe 19 anni fa
parent
commit
ac11ab43a2
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      compiler/ncnv.pas

+ 2 - 2
compiler/ncnv.pas

@@ -1659,9 +1659,9 @@ implementation
         case left.nodetype of
         case left.nodetype of
           realconstn :
           realconstn :
             begin
             begin
-              if is_currency(resulttype.def) then
+              if (convtype = tc_real_2_currency) then
                 result := resulttype_real_to_currency
                 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
                 result := resulttype_real_to_real
               else
               else
                 exit;
                 exit;