Browse Source

* avoid a warning regarding automatic type conversion of Comp

git-svn-id: trunk@42035 -
svenbarth 6 years ago
parent
commit
3493579c2d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/rtl-objpas/src/i386/invoke.inc

+ 1 - 1
packages/rtl-objpas/src/i386/invoke.inc

@@ -420,7 +420,7 @@ begin
         ftCurr:
         ftCurr:
           PCurrency(aResultValue)^ := floatres / 10000;
           PCurrency(aResultValue)^ := floatres / 10000;
         ftComp:
         ftComp:
-          PComp(aResultValue)^ := floatres;
+          PComp(aResultValue)^ := Comp(floatres);
       end;
       end;
     end else if aResultType^.Kind in [tkQWord, tkInt64] then
     end else if aResultType^.Kind in [tkQWord, tkInt64] then
       PQWord(aResultValue)^ := regstack[0] or (QWord(regstack[1]) shl 32)
       PQWord(aResultValue)^ := regstack[0] or (QWord(regstack[1]) shl 32)