瀏覽代碼

Fix signed/unsigned warning

bel2125 8 年之前
父節點
當前提交
a7d3ad7c70
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;
 				}