src/archiver_qpak.c
changeset 1208 3edcb015089a
parent 1203 55f147714ce2
child 1240 22d4d1bd4e21
--- a/src/archiver_qpak.c	Sat Mar 10 02:31:58 2012 -0500
+++ b/src/archiver_qpak.c	Sat Mar 10 03:18:33 2012 -0500
@@ -281,7 +281,7 @@
     PHYSFS_sint32 lo = 0;
     PHYSFS_sint32 hi = (PHYSFS_sint32) (info->entryCount - 1);
     PHYSFS_sint32 middle;
-    PHYSFS_uint32 dlen = strlen(path);
+    PHYSFS_uint32 dlen = (PHYSFS_uint32) strlen(path);
     PHYSFS_sint32 retval = -1;
     const char *name;
     int rc;
@@ -357,7 +357,7 @@
     if (i == -1)  /* no such directory. */
         return;
 
-    dlen = strlen(dname);
+    dlen = (PHYSFS_sint32) strlen(dname);
     if ((dlen > 0) && (dname[dlen - 1] == '/')) /* ignore trailing slash. */
         dlen--;
 
@@ -398,7 +398,7 @@
                                   int *isDir)
 {
     QPAKentry *a = info->entries;
-    PHYSFS_sint32 pathlen = strlen(path);
+    PHYSFS_sint32 pathlen = (PHYSFS_sint32) strlen(path);
     PHYSFS_sint32 lo = 0;
     PHYSFS_sint32 hi = (PHYSFS_sint32) (info->entryCount - 1);
     PHYSFS_sint32 middle;