소스 검색

* avoid a warning regarding automatic type conversion of Comp

git-svn-id: trunk@42035 -
svenbarth 6 년 전
부모
커밋
3493579c2d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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:
           PCurrency(aResultValue)^ := floatres / 10000;
         ftComp:
-          PComp(aResultValue)^ := floatres;
+          PComp(aResultValue)^ := Comp(floatres);
       end;
     end else if aResultType^.Kind in [tkQWord, tkInt64] then
       PQWord(aResultValue)^ := regstack[0] or (QWord(regstack[1]) shl 32)