Browse Source

* fixed type when passing an address parameter to another address parameter

git-svn-id: trunk@30715 -
Jonas Maebe 10 years ago
parent
commit
2102db1a0c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/ncgcal.pas

+ 1 - 1
compiler/ncgcal.pas

@@ -383,7 +383,7 @@ implementation
                           if (left.location.reference.index<>NR_NO) or
                           if (left.location.reference.index<>NR_NO) or
                              (left.location.reference.offset<>0) then
                              (left.location.reference.offset<>0) then
                             internalerror(200410107);
                             internalerror(200410107);
-                          hlcg.a_load_reg_cgpara(current_asmdata.CurrAsmList,voidpointertype,left.location.reference.base,tempcgpara)
+                          hlcg.a_load_reg_cgpara(current_asmdata.CurrAsmList,getpointerdef(left.resultdef),left.location.reference.base,tempcgpara)
                         end
                         end
                       else
                       else
                         begin
                         begin