Commit af2b6da0 authored by Robert McGibbon's avatar Robert McGibbon
Browse files

Update ContextImpl.cpp

parent 1bf7f75f
...@@ -418,7 +418,7 @@ void ContextImpl::createCheckpoint(ostream& stream) { ...@@ -418,7 +418,7 @@ void ContextImpl::createCheckpoint(ostream& stream) {
void ContextImpl::loadCheckpoint(istream& stream) { void ContextImpl::loadCheckpoint(istream& stream) {
char magicbytes[4]; char magicbytes[4];
stream.read(magicbytes, 4); stream.read(magicbytes, 4);
if (memcmp(magicbytes, &CHECKPOINT_MAGIC_BYTES[0], 4*sizeof(char)) != 0) if (memcmp(magicbytes, CHECKPOINT_MAGIC_BYTES, 4*sizeof(char)) != 0)
throw OpenMMException("loadCheckpoint: Checkpoint header was not correct"); throw OpenMMException("loadCheckpoint: Checkpoint header was not correct");
string platformName = readString(stream); string platformName = readString(stream);
......
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