瀏覽代碼

* better suitable error message for out of range constants

git-svn-id: trunk@38290 -
florian 7 年之前
父節點
當前提交
90051fd7d2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/avr/raavr.pas

+ 1 - 1
compiler/avr/raavr.pas

@@ -367,7 +367,7 @@ unit raavr;
                           // Need to check if original value was signed or simply sign overflowed in 16 bit?
                           if ((taicpu(Result).oper[i]^.val > AVRInstrConstraint[opcode].Operands[i].max) or
                               (taicpu(Result).oper[i]^.val < AVRInstrConstraint[opcode].Operands[i].min)) then
-                            Message(cg_e_parasize_too_big);
+                            Message(asmr_e_constant_out_of_bounds);
                         end;
                   end;
               end;