From: havoc Date: Fri, 5 Aug 2011 21:13:08 +0000 (+0000) Subject: don't depend on ptrdiff_t X-Git-Tag: xonotic-v0.6.0~163^2~283 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e507555840abf0872f457d4e400cb9e14d0b572f;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 --- 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;