소스 검색

* use svalue to compare with -1

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

+ 2 - 2
compiler/nadd.pas

@@ -458,7 +458,7 @@ implementation
                    result := left.getcopy;
                 end;
               end
-            else if tordconstnode(right).value = -1 then
+            else if tordconstnode(right).value.svalue = -1 then
               begin
                 case nodetype of
                   muln:
@@ -488,7 +488,7 @@ implementation
                    result := right.getcopy;
                 end;
               end
-            else if tordconstnode(left).value = -1 then
+            else if tordconstnode(left).value.svalue = -1 then
               begin
                 case nodetype of
                   muln: