Browse Source

Fix signed unsigned warnings for GCC

bel 9 years ago
parent
commit
cf4a29fae7
1 changed files with 4 additions and 4 deletions
  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;
 						remove_bad_file(conn, path);
 					}
-					file_size += (size_t)n;
+					file_size += n;
 
 					if (fstore.fp) {
 						r = fclose(fstore.fp);
@@ -437,7 +437,7 @@ mg_handle_form_request(struct mg_connection *conn,
 						fstore.fp = NULL;
 						remove_bad_file(conn, path);
 					}
-					file_size += (size_t)n;
+					file_size += n;
 				}
 
 				if (!end_of_key_value_pair_found) {
@@ -697,7 +697,7 @@ mg_handle_form_request(struct mg_connection *conn,
 							fstore.fp = NULL;
 							remove_bad_file(conn, path);
 						}
-						file_size += (size_t)n;
+						file_size += n;
 					}
 				}
 
@@ -750,7 +750,7 @@ mg_handle_form_request(struct mg_connection *conn,
 						fstore.fp = NULL;
 						remove_bad_file(conn, path);
 					}
-					file_size += (size_t)n;
+					file_size += n;
 				}
 			}