Procházet zdrojové kódy

Squashed warning under linux

Sergey Lyubka před 12 roky
rodič
revize
2a7a594b49
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      mongoose.c

+ 1 - 1
mongoose.c

@@ -1530,7 +1530,7 @@ int mg_write(struct mg_connection *conn, const void *buf, size_t len) {
       conn->last_throttle_bytes += total;
       conn->last_throttle_bytes += total;
       while (total < (int64_t) len && conn->ctx->stop_flag == 0) {
       while (total < (int64_t) len && conn->ctx->stop_flag == 0) {
         allowed = conn->throttle > (int64_t) len - total ?
         allowed = conn->throttle > (int64_t) len - total ?
-          len - total : conn->throttle;
+          (int64_t) len - total : conn->throttle;
         if ((n = push(NULL, conn->client.sock, conn->ssl, (const char *) buf,
         if ((n = push(NULL, conn->client.sock, conn->ssl, (const char *) buf,
                       (int64_t) allowed)) != allowed) {
                       (int64_t) allowed)) != allowed) {
           break;
           break;