Commit 9a7aeed6 by maarten

static assert little endianness in mapmaker

git-svn-id: svn+ssh://gitlab/srv/svn-repos/pdb-redo/trunk@406 a1961a4f-ab94-4bcc-80e8-33b5a54de466
parent 963d51bb
......@@ -154,6 +154,7 @@ template<typename FTYPE>
void writeCCP4MapFile(ostream& os, clipper::Xmap<FTYPE>& xmap, clipper::Grid_range range)
{
static_assert(sizeof(CCP4MapFileHeader) == 256 * 4);
static_assert(__BYTE_ORDER == __LITTLE_ENDIAN);
auto& spacegroup = xmap.spacegroup();
int spaceGroupNumber = spacegroup.descr().spacegroup_number();
......@@ -220,7 +221,7 @@ void writeCCP4MapFile(ostream& os, clipper::Xmap<FTYPE>& xmap, clipper::Grid_ran
os.write(reinterpret_cast<char*>(&h), sizeof(h));
const string kSpaces(80, ' ');
for (size_t si = 0; si < spacegroup.num_symops(); ++si)
for (int si = 0; si < spacegroup.num_symops(); ++si)
{
string symop = spacegroup.symop(si).format();
os.write(symop.c_str(), symop.length());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment