浏览代码

Fix signed unsigned warnings for GCC

bel 9 年之前
父节点
当前提交
6b416946db
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/handle_form.inl

+ 4 - 4
src/handle_form.inl

@@ -264,7 +264,7 @@ mg_handle_form_request(struct mg_connection *conn,
 						fstore.fp = NULL;
 						fstore.fp = NULL;
 						remove_bad_file(conn, path);
 						remove_bad_file(conn, path);
 					}
 					}
-					file_size += n;
+					file_size += (int64_t)n;
 
 
 					if (fstore.fp) {
 					if (fstore.fp) {
 						r = fclose(fstore.fp);
 						r = fclose(fstore.fp);
@@ -437,7 +437,7 @@ mg_handle_form_request(struct mg_connection *conn,
 						fstore.fp = NULL;
 						fstore.fp = NULL;
 						remove_bad_file(conn, path);
 						remove_bad_file(conn, path);
 					}
 					}
-					file_size += n;
+					file_size += (int64_t)n;
 				}
 				}
 
 
 				if (!end_of_key_value_pair_found) {
 				if (!end_of_key_value_pair_found) {
@@ -697,7 +697,7 @@ mg_handle_form_request(struct mg_connection *conn,
 							fstore.fp = NULL;
 							fstore.fp = NULL;
 							remove_bad_file(conn, path);
 							remove_bad_file(conn, path);
 						}
 						}
-						file_size += n;
+						file_size += (int64_t)n;
 					}
 					}
 				}
 				}
 
 
@@ -750,7 +750,7 @@ mg_handle_form_request(struct mg_connection *conn,
 						fstore.fp = NULL;
 						fstore.fp = NULL;
 						remove_bad_file(conn, path);
 						remove_bad_file(conn, path);
 					}
 					}
-					file_size += n;
+					file_size += (int64_t)n;
 				}
 				}
 			}
 			}