From: havoc Date: Fri, 5 Aug 2011 21:13:08 +0000 (+0000) Subject: don't depend on ptrdiff_t X-Git-Tag: xonotic-v0.5.0~52 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=24239eb76e491838a062d5397c194e29b783e04c;p=xonotic%2Fdarkplaces.git don't depend on ptrdiff_t git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11269 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=e507555840abf0872f457d4e400cb9e14d0b572f --- 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;