Skip to content

Commit

Permalink
attempt 2 to build on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
mhekkel committed Jan 22, 2024
1 parent bbd1e27 commit fc14a65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pdb/reconstruct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ void checkAtomRecords(datablock &db)

// Rewrite the coordinates and other fields that look better in a fixed format
// Be careful not to nuke invalidly formatted data here
for (auto [tag, prec] : std::initializer_list<std::tuple<std::string_view,std::string::size_type>>{
for (auto [tag, prec] : std::vector<std::tuple<std::string_view,std::string::size_type>>{
{ "cartn_x", 3 },
{ "cartn_y", 3 },
{ "cartn_z", 3 },
Expand All @@ -260,7 +260,7 @@ void checkAtomRecords(datablock &db)
char b[12];

if (auto [ptr, ec] = cif::to_chars(b, b + sizeof(b), v, cif::chars_format::fixed, prec); ec == std::errc())
row.assign(tag, {b, ptr}, false, false);
row.assign(tag, {b, static_cast<std::string::size_type>(ptr - b)}, false, false);
}
}
}
Expand Down

0 comments on commit fc14a65

Please sign in to comment.