Skip to content

Commit

Permalink
Explicit casting should be better.
Browse files Browse the repository at this point in the history
  • Loading branch information
olegsobolev committed Nov 9, 2023
1 parent 4149890 commit 5d426bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iotbx/pdb/hierarchy_atom_bpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ namespace {
{
std::string result = self.format_atom_record(
0, replace_floats_with);
return boost::python::str(result.c_str());
return static_cast<boost::python::str>(result);
}

#ifdef IS_PY3K
Expand Down

0 comments on commit 5d426bf

Please sign in to comment.