Browse Source

* Apply fix for bug #17291 as uploaded by reporter: Compiler generates a
32 bit value for deciding between lookup table or key/value array,
also on 64 bit processors.

git-svn-id: trunk@15916 -

daniel 15 years ago
parent
commit
79dd212bb7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/inc/sstrings.inc

+ 1 - 1
rtl/inc/sstrings.inc

@@ -447,7 +447,7 @@ begin
           dec(ordinal,minvalue);
           dec(ordinal,minvalue);
         end;
         end;
       {Get the address of the string.}
       {Get the address of the string.}
-      p:=Pshortstring((PPpointer(ord2strindex)+1+ordinal)^);
+      p:=Pshortstring((PPpointer(ord2strindex+sizeof(longint))+ordinal)^);
       if p=nil then
       if p=nil then
         exit;      {Invalid ordinal value for this enum.}
         exit;      {Invalid ordinal value for this enum.}
       s:=p^;
       s:=p^;