Selaa lähdekoodia

* fixed internconsts with two arguments. This allows compile time evaluation of ptr(const,const) on i8086 and i386.

git-svn-id: trunk@32116 -
nickysn 9 vuotta sitten
vanhempi
commit
e325cf1126
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      compiler/ncal.pas

+ 1 - 1
compiler/ncal.pas

@@ -3602,7 +3602,7 @@ implementation
             is_const:=(po_internconst in procdefinition.procoptions) and
                       ((block_type in [bt_const,bt_type,bt_const_type,bt_var_type]) or
                        (assigned(left) and ((tcallparanode(left).left.nodetype in [realconstn,ordconstn])
-                        and (not assigned(tcallparanode(left).right) or (tcallparanode(left).right.nodetype in [realconstn,ordconstn])))));
+                        and (not assigned(tcallparanode(left).right) or (tcallparanode(tcallparanode(left).right).left.nodetype in [realconstn,ordconstn])))));
             if (procdefinition.proccalloption=pocall_internproc) or is_const then
              begin
                if assigned(left) then