소스 검색

* fix 32bit truncation in type determination of constant operands

git-svn-id: trunk@8909 -
peter 18 년 전
부모
커밋
d74bd34a91
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      compiler/x86/aasmcpu.pas

+ 1 - 1
compiler/x86/aasmcpu.pas

@@ -999,7 +999,7 @@ implementation
                   { allow 2nd or 3rd operand being a constant and expect no size for shuf* etc. }
                   if (opsize=S_NO) and not(i in [1,2]) then
                     message(asmr_e_invalid_opcode_and_operand);
-                  if (opsize<>S_W) and (longint(val)>=-128) and (val<=127) then
+                  if (opsize<>S_W) and (aint(val)>=-128) and (val<=127) then
                     ot:=OT_IMM8 or OT_SIGNED
                   else
                     ot:=OT_IMMEDIATE or opsize_2_type[i,opsize];