remove unused code, remove warning

This commit is contained in:
skywind3000
2017-06-13 22:52:36 +08:00
parent 6093e928bd
commit 36c5a368de
2 changed files with 1 additions and 3 deletions

2
ikcp.c
View File

@@ -749,7 +749,7 @@ int ikcp_input(ikcpcb *kcp, const char *data, long size)
ikcp_log(kcp, IKCP_LOG_INPUT, "[RI] %d bytes", size);
}
if (data == NULL || size < IKCP_OVERHEAD) return -1;
if (data == NULL || (int)size < (int)IKCP_OVERHEAD) return -1;
while (1) {
IUINT32 ts, sn, len, una, conv;