浏览代码

* 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 年之前
父节点
当前提交
79dd212bb7
共有 1 个文件被更改,包括 1 次插入1 次删除
  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^;