浏览代码

Fix bug in in_const_swap_qword handling

git-svn-id: trunk@29067 -
pierre 10 年之前
父节点
当前提交
a77735d7af
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/ninl.pas

+ 1 - 1
compiler/ninl.pas

@@ -2075,7 +2075,7 @@ implementation
                  in_const_swap_long :
                    hp:=cordconstnode.create((vl and $ffff) shl 16+(vl shr 16),left.resultdef,true);
                  in_const_swap_qword :
-                   hp:=cordconstnode.create((vl and $ffff) shl 32+(vl shr 32),left.resultdef,true);
+                   hp:=cordconstnode.create((vl and $ffffffff) shl 32+(vl shr 32),left.resultdef,true);
                  in_const_ptr:
                    begin
                      {Don't construct pointers from negative values.}