Skip to content

Commit 06dfcdf

Browse files
committed
fix i underflow
1 parent c318e0f commit 06dfcdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/server/server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2352,7 +2352,7 @@ struct server_context {
23522352
const std::function<void(json)> & error_handler,
23532353
const std::function<bool()> & is_connection_closed) {
23542354
std::vector<server_task_result_ptr> results(id_tasks.size());
2355-
for (size_t i = 0; i < id_tasks.size(); i++) {
2355+
for (int i = 0; i < (int)id_tasks.size(); i++) {
23562356
server_task_result_ptr result = queue_results.recv_with_timeout(id_tasks, HTTP_POLLING_SECONDS);
23572357

23582358
if (is_connection_closed()) {

0 commit comments

Comments
 (0)