소스 검색

* fixes ordinal comparisons with constants

git-svn-id: trunk@30751 -
florian 10 년 전
부모
커밋
d3fbfa225f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      compiler/avr/navradd.pas

+ 1 - 1
compiler/avr/navradd.pas

@@ -232,7 +232,7 @@ interface
             if right.location.loc=LOC_CONSTANT then
               begin
                 tmpreg2:=cg.getintregister(current_asmdata.CurrAsmList,OS_8);
-                cg.a_load_const_reg(current_asmdata.CurrAsmList,OS_8,(right.location.value64 shr (i*8)) and $ff,tmpreg2);
+                cg.a_load_const_reg(current_asmdata.CurrAsmList,OS_8,(right.location.value64 shr ((i-1)*8)) and $ff,tmpreg2);
                 current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg(A_CPC,tmpreg1,tmpreg2));
               end
             else