Explorar o código

Fixed a compiler warning

Jeremy Friesner %!s(int64=2) %!d(string=hai) anos
pai
achega
3e0761c14d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -21236,7 +21236,7 @@ mg_start2(struct mg_init_data *init, struct mg_error_data *error)
 	ctx->context_type = CONTEXT_SERVER; /* server context */
 
 	/* Start worker threads */
-	for (int i = 0; i < prespawnthreadcount; i++) {
+	for (i = 0; (int)i < prespawnthreadcount; i++) {
 		/* worker_thread sets up the other fields */
 		if (mg_start_worker_thread(ctx, 0) != 0) {
 			long error_no = (long)ERRNO;