Explorar el Código

* changed TResStrInitTable.Count and TWStrInitTablesTable.Count to nativeint

git-svn-id: trunk@26921 -
nickysn hace 11 años
padre
commit
5242ed7864
Se han modificado 3 ficheros con 3 adiciones y 3 borrados
  1. 1 1
      compiler/ngenutil.pas
  2. 1 1
      rtl/objpas/objpas.pp
  3. 1 1
      rtl/win/syswin.inc

+ 1 - 1
compiler/ngenutil.pas

@@ -805,7 +805,7 @@ implementation
          inc(count);
        end;
       { Insert TableCount at start }
-      hlist.insert(Tai_const.Create_32bit(count));
+      hlist.insert(Tai_const.Create_pint(count));
       { insert in data segment }
       maybe_new_object_file(current_asmdata.asmlists[al_globals]);
       new_section(current_asmdata.asmlists[al_globals],sec_data,tablename,sizeof(pint));

+ 1 - 1
rtl/objpas/objpas.pp

@@ -311,7 +311,7 @@ Type
    end;
 
    TResStrInitTable = packed record
-     Count: longint;
+     Count: {$ifdef VER2_6}longint{$else}nativeint{$endif};
      Tables: packed array[1..{$ifdef cpu16}8191{$else cpu16}32767{$endif cpu16}] of PResStrInitEntry;
    end;
 

+ 1 - 1
rtl/win/syswin.inc

@@ -637,7 +637,7 @@ type
 
   PWStrInitTablesTable = ^TWStrInitTablesTable;
   TWStrInitTablesTable = packed record
-    count  : longint;
+    count  : {$ifdef VER2_6}longint{$else}nativeint{$endif};
     tables : packed array [1..32767] of PWStrInitEntry;
   end;