瀏覽代碼

* fixed overflow checking for the 64-bit unary minus on 16 and 8-bit platforms

git-svn-id: trunk@27653 -
nickysn 11 年之前
父節點
當前提交
88df284423
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/ncgmat.pas

+ 1 - 1
compiler/ncgmat.pas

@@ -189,7 +189,7 @@ implementation
           begin
             tr:=cg.getintregister(current_asmdata.CurrAsmList,OS_32);
             cg.a_op_const_reg_reg(current_asmdata.CurrAsmList,OP_XOR,OS_32,
-              aint($80000000),location.register64.reghi,tr);
+              longint($80000000),location.register64.reghi,tr);
             cg.a_op_reg_reg(current_asmdata.CurrAsmList,OP_OR,OS_32,
               location.register64.reglo,tr);
             current_asmdata.getjumplabel(hl);