소스 검색

* use resultdef for the type of the resulting zero const from the '0*x' and
'0 and x' optimization

git-svn-id: trunk@36040 -

nickysn 8 년 전
부모
커밋
546e993c25
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      compiler/nadd.pas

+ 1 - 1
compiler/nadd.pas

@@ -623,7 +623,7 @@ implementation
                   andn,muln:
                    if (cs_opt_level4 in current_settings.optimizerswitches) or
                        not might_have_sideeffects(right) then
-                     result:=cordconstnode.create(0,right.resultdef,true);
+                     result:=cordconstnode.create(0,resultdef,true);
                 end;
               end
             else if tordconstnode(left).value = 1 then