From e507555840abf0872f457d4e400cb9e14d0b572f Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 5 Aug 2011 21:13:08 +0000 Subject: [PATCH] don't depend on ptrdiff_t git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11269 d7cf8633-e32d-0410-b094-e92efae38249 --- netconn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netconn.c b/netconn.c index 0f585e98..cb19aaee 100755 --- a/netconn.c +++ b/netconn.c @@ -2309,7 +2309,7 @@ static qboolean NetConn_BuildStatusResponse(const char* challenge, char* out_msg char *p; const char *q; p = qcstatus; - for(q = str; *q && p - qcstatus < (ptrdiff_t)(sizeof(qcstatus)) - 1; ++q) + for(q = str; *q && (size_t)((p - qcstatus) < (sizeof(qcstatus)) - 1); ++q) if(*q != '\\' && *q != '\n') *p++ = *q; *p = 0; -- 2.39.2