"examples/benchmark/benchmark.py" did not exist on "6a82ea51f237e61c1c2b3eaff2ade0f8cd32a49b"
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) {
void ContextImpl::loadCheckpoint(istream& stream) {
char 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");
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