Skip to content

Commit

Permalink
Fix GCC 12 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
robomics committed Oct 9, 2023
1 parent e0dc294 commit 650ad22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/hictk/cli/cli_convert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ void Cli::transform_args_convert_subcommand() {
if (c.tmp_dir.empty()) {
c.tmp_dir = c.path_to_output.parent_path();
}

c.tmp_dir /= c.path_to_input.filename();
c.tmp_dir.replace_extension(".tmp");
}

} // namespace hictk::tools
3 changes: 1 addition & 2 deletions src/hictk/convert/cool_to_hic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,7 @@ static bool dump_weights(const ConvertConfig& c, const std::filesystem::path& we
void cool_to_hic(const ConvertConfig& c) {
std::ignore = find_java();

const internal::TmpDir tmpdir{
c.tmp_dir / std::filesystem::path(c.path_to_input.filename()).replace_extension(".tmp")};
const internal::TmpDir tmpdir{c.tmp_dir};

const auto chrom_sizes = tmpdir() / "reference.chrom.sizes";
const auto pixels = [&]() {
Expand Down

0 comments on commit 650ad22

Please sign in to comment.