fix signed/unsigned comparison error under gcc

This commit is contained in:
Martin Michelsen
2022-03-08 01:02:02 -08:00
parent 20aa65e523
commit 4e6b073625
+1 -1
View File
@@ -214,7 +214,7 @@ void IPStackSimulator::on_client_input(struct bufferevent* bev) {
while (evbuffer_get_length(buf) >= 2) {
uint16_t frame_size;
evbuffer_copyout(buf, &frame_size, 2);
if (evbuffer_get_length(buf) < frame_size + 2) {
if (evbuffer_get_length(buf) < static_cast<size_t>(frame_size + 2)) {
break; // No complete frame available; done for now
}