ソースを参照

* fixed location.size for divmodn (in particular the sign)

git-svn-id: trunk@9422 -
Jonas Maebe 18 年 前
コミット
444ba107f8
1 ファイル変更2 行追加2 行削除
  1. 2 2
      compiler/x86_64/nx64mat.pas

+ 2 - 2
compiler/x86_64/nx64mat.pas

@@ -73,8 +73,8 @@ implementation
           exit;
 
         { put numerator in register }
-        location_reset(location,LOC_REGISTER,OS_INT);
-        location_force_reg(current_asmdata.CurrAsmList,left.location,OS_INT,false);
+        location_reset(location,LOC_REGISTER,def_cgsize(resultdef));
+        location_force_reg(current_asmdata.CurrAsmList,left.location,location.size,false);
         hreg1:=left.location.register;
 
         if (nodetype=divn) and (right.nodetype=ordconstn) and