From 1c76312b52aad3565537a423344fa4d9f543e6c3 Mon Sep 17 00:00:00 2001 From: divverent Date: Sun, 17 Oct 2010 14:15:06 +0000 Subject: [PATCH] fix two types to hopefulyl compile on MSVC git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10543 d7cf8633-e32d-0410-b094-e92efae38249 --- crypto.c | 2 +- netconn.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto.c b/crypto.c index 896c3aa6..f3bc8889 100644 --- 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) diff --git a/netconn.c b/netconn.c index 73de1f4c..dde22c22 100755 --- 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; -- 2.39.2