Skip to content

Commit

Permalink
Try fixing build with gcc 13.3 (SoftFever#5991)
Browse files Browse the repository at this point in the history
  • Loading branch information
Noisyfox committed Jul 2, 2024
1 parent 9eaff8f commit 86894ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/slic3r/Utils/Http.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ void Http::priv::form_add_file(const char *name, const fs::path &path, const cha
filename = path.string().c_str();
}

form_files.emplace_back(form_file{{path, std::ios::in | std::ios::binary}, offset, length});
form_files.emplace_back({path, std::ios::in | std::ios::binary}, offset, length);
auto &f = form_files.back();
size_t size = length;
if (length == 0) {
Expand Down Expand Up @@ -381,7 +381,7 @@ void Http::priv::set_put_body(const fs::path &path)
boost::system::error_code ec;
boost::uintmax_t filesize = file_size(path, ec);
if (!ec) {
putFile = std::make_unique<form_file>(form_file{{path, std::ios_base::binary | std::ios_base::in}, 0, 0});
putFile = std::make_unique<form_file>({path, std::ios_base::binary | std::ios_base::in}, 0, 0);
::curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
::curl_easy_setopt(curl, CURLOPT_READDATA, (void *) (putFile.get()));
::curl_easy_setopt(curl, CURLOPT_INFILESIZE, filesize);
Expand Down

0 comments on commit 86894ec

Please sign in to comment.