Skip to content

Commit

Permalink
fix compilation - missing header for uint8_t
Browse files Browse the repository at this point in the history
fixes #328
  • Loading branch information
wojdyr committed Aug 26, 2024
1 parent 151b7e1 commit 7562d87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/gemmi/model.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ template<typename T, typename M> std::vector<T> model_subchains(M* model) {
/// File format of a macromolecular model. When passed to read_structure():
/// Unknown = guess format from the extension,
/// Detect = guess format from the content.
enum class CoorFormat : std::uint8_t {
enum class CoorFormat : unsigned char {
Unknown, Detect, Pdb, Mmcif, Mmjson, ChemComp
};

Expand Down
2 changes: 1 addition & 1 deletion prog/options.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ struct OptParser : option::Parser {
int integer_or(int opt, int default_) const;
};

namespace gemmi { enum class CoorFormat : std::uint8_t; }
namespace gemmi { enum class CoorFormat : unsigned char; }
namespace gemmi { namespace cif { struct WriteOptions; } }

// to be used with Arg::CoorFormat
Expand Down

0 comments on commit 7562d87

Please sign in to comment.