소스 검색

* fixed loading of negative constants in some record regvar fields

git-svn-id: trunk@3640 -
Jonas Maebe 19 년 전
부모
커밋
32a9702965
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      compiler/cgobj.pas

+ 1 - 1
compiler/cgobj.pas

@@ -953,7 +953,7 @@ implementation
        else
          bitmask := (1 shl startbit) - 1;
        a_op_const_reg(list,OP_AND,subsetregsize,bitmask,subsetreg);
-       a_op_const_reg(list,OP_OR,subsetregsize,a shl startbit,subsetreg);
+       a_op_const_reg(list,OP_OR,subsetregsize,(a shl startbit) and not(bitmask),subsetreg);
     end;