Browse Source

* allow 64bit property indexes for 64bit

git-svn-id: trunk@2522 -
peter 19 years ago
parent
commit
0a2d1df0b6
1 changed files with 4 additions and 1 deletions
  1. 4 1
      compiler/pdecvar.pas

+ 4 - 1
compiler/pdecvar.pas

@@ -323,7 +323,10 @@ implementation
                      procedure matching requires equal parameters }
                      procedure matching requires equal parameters }
                    if is_constnode(pt) and
                    if is_constnode(pt) and
                       is_ordinal(pt.resulttype.def)
                       is_ordinal(pt.resulttype.def)
-                      and (not is_64bitint(pt.resulttype.def)) then
+{$ifndef cpu64}
+                      and (not is_64bitint(pt.resulttype.def))
+{$endif cpu64}
+                      then
                      begin
                      begin
                        if is_integer(pt.resulttype.def) then
                        if is_integer(pt.resulttype.def) then
                          inserttypeconv_internal(pt,s32inttype);
                          inserttypeconv_internal(pt,s32inttype);