Explorar o código

* return voidpointertype.size instead of sizeof(pint) in tstringdef.size in
order to return the correct size in the far data i8086 memory models

git-svn-id: trunk@27241 -

nickysn %!s(int64=11) %!d(string=hai) anos
pai
achega
ebdfbeaac8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      compiler/symdef.pas

+ 1 - 1
compiler/symdef.pas

@@ -2237,7 +2237,7 @@ implementation
           st_ansistring,
           st_widestring,
           st_unicodestring:
-            Result:=sizeof(pint);
+            Result:=voidpointertype.size;
           else
             internalerror(2014032301);
         end;