Explorar o código

Fix size_t / ssize_t typo

bel %!s(int64=10) %!d(string=hai) anos
pai
achega
d61bd2b69c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -5233,7 +5233,7 @@ static void send_file_data(struct mg_connection *conn,
 			do {
 				/* 2147479552 (0x7FFFF000) is a limit found by experiment on 64
 				 * bit Linux (2^31 minus one memory page of 4k?). */
-				ssize_t sf_tosend =
+				size_t sf_tosend =
 				    (size_t)((len < 0x7FFFF000) ? len : 0x7FFFF000);
 				sf_sent =
 				    sendfile(conn->client.sock, sf_file, &sf_offs, sf_tosend);