]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
don't depend on ptrdiff_t
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 5 Aug 2011 21:13:08 +0000 (21:13 +0000)
committerRudolf Polzer <divverent@xonotic.org>
Sun, 14 Aug 2011 14:38:26 +0000 (16:38 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11269 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=e507555840abf0872f457d4e400cb9e14d0b572f

netconn.c

index 0f585e98f6bcd764f7adbfc192679c405578a220..cb19aaee7425ec3af4a26fc2f1f5d46fa303afaf 100755 (executable)
--- 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;