Fix typo in assertion
This commit is contained in:
@@ -4865,7 +4865,7 @@ void chttp_server_process_events(CHTTP_Server *server,
|
|||||||
int j = 0;
|
int j = 0;
|
||||||
while (server->conns[j].state != CHTTP_SERVER_CONN_FREE) {
|
while (server->conns[j].state != CHTTP_SERVER_CONN_FREE) {
|
||||||
j++;
|
j++;
|
||||||
assert(i < CHTTP_SERVER_CAPACITY);
|
assert(j < CHTTP_SERVER_CAPACITY);
|
||||||
}
|
}
|
||||||
|
|
||||||
conn = &server->conns[j];
|
conn = &server->conns[j];
|
||||||
|
|||||||
+1
-1
@@ -257,7 +257,7 @@ void chttp_server_process_events(CHTTP_Server *server,
|
|||||||
int j = 0;
|
int j = 0;
|
||||||
while (server->conns[j].state != CHTTP_SERVER_CONN_FREE) {
|
while (server->conns[j].state != CHTTP_SERVER_CONN_FREE) {
|
||||||
j++;
|
j++;
|
||||||
assert(i < CHTTP_SERVER_CAPACITY);
|
assert(j < CHTTP_SERVER_CAPACITY);
|
||||||
}
|
}
|
||||||
|
|
||||||
conn = &server->conns[j];
|
conn = &server->conns[j];
|
||||||
|
|||||||
Reference in New Issue
Block a user