archivers/qpak.c
changeset 494 364e564a26e2
parent 467 99664d9842cb
child 504 3420d82f9b01
equal deleted inserted replaced
493:4eaefa58e259 494:364e564a26e2
   190 
   190 
   191 
   191 
   192 static int qpak_loadEntries(void *fh, int dirOffset, int numEntries,
   192 static int qpak_loadEntries(void *fh, int dirOffset, int numEntries,
   193                             QPAKentry *entries)
   193                             QPAKentry *entries)
   194 {
   194 {
   195     PHYSFS_uint32 i;
   195     PHYSFS_sint32 i;
   196 
   196 
   197     BAIL_IF_MACRO(__PHYSFS_platformSeek(fh, dirOffset) == 0, NULL, 0);
   197     BAIL_IF_MACRO(__PHYSFS_platformSeek(fh, dirOffset) == 0, NULL, 0);
   198 
   198 
   199     for (i = 0; i < numEntries; i++, entries++)
   199     for (i = 0; i < numEntries; i++, entries++)
   200     {
   200     {
   401 
   401 
   402 
   402 
   403 static int qpak_populateDirectories(QPAKentry *entries, int numEntries,
   403 static int qpak_populateDirectories(QPAKentry *entries, int numEntries,
   404                                     QPAKdirectory *root)
   404                                     QPAKdirectory *root)
   405 {
   405 {
   406     PHYSFS_uint32 i;
   406     PHYSFS_sint32 i;
   407     QPAKentry *entry = entries;
   407     QPAKentry *entry = entries;
   408 
   408 
   409     for (i = 0; i < numEntries; i++, entry++)
   409     for (i = 0; i < numEntries; i++, entry++)
   410     {
   410     {
   411         if (qpak_addEntry(root, entry->name, entry) == 0)
   411         if (qpak_addEntry(root, entry->name, entry) == 0)