fix two types to hopefulyl compile on MSVC
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 17 Oct 2010 14:15:06 +0000 (14:15 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 17 Oct 2010 14:15:06 +0000 (14:15 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10543 d7cf8633-e32d-0410-b094-e92efae38249

crypto.c
netconn.c

index 896c3aa..f3bc888 100644 (file)
--- a/crypto.c
+++ b/crypto.c
@@ -337,7 +337,7 @@ void sha256(unsigned char *out, const unsigned char *in, int n)
 static size_t Crypto_LoadFile(const char *path, char *buf, size_t nmax)
 {
        qfile_t *f = NULL;
-       ssize_t n;
+       fs_offset_t n;
        if(*fs_userdir)
                f = FS_SysOpen(va("%s%s", fs_userdir, path), "rb", false);
        if(!f)
index 73de1f4..dde22c2 100755 (executable)
--- a/netconn.c
+++ b/netconn.c
@@ -2285,7 +2285,7 @@ static qboolean NetConn_BuildStatusResponse(const char* challenge, char* out_msg
                        char *p;
                        const char *q;
                        p = qcstatus;
-                       for(q = str; *q && p - qcstatus < (ssize_t)(sizeof(qcstatus)) - 1; ++q)
+                       for(q = str; *q && p - qcstatus < (ptrdiff_t)(sizeof(qcstatus)) - 1; ++q)
                                if(*q != '\\' && *q != '\n')
                                        *p++ = *q;
                        *p = 0;