Sfoglia il codice sorgente

Fix signed/unsigned warning

bel2125 8 anni fa
parent
commit
a7d3ad7c70
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/handle_form.inl

+ 1 - 1
src/handle_form.inl

@@ -601,7 +601,7 @@ mg_handle_form_request(struct mg_connection *conn,
 					d++;
 				}
 				if ((d > 0) && (buf[d] == '-')) {
-					memmove(buf, buf + d, buf_fill - d);
+                    memmove(buf, buf + d, (unsigned)buf_fill - (unsigned)d);
 					buf_fill -= d;
 					buf[buf_fill] = 0;
 				}