소스 검색

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;
 				}