This commit is contained in:
Rachael Alexanderson 2016-09-21 01:47:36 -04:00
commit eeb4cbdfbc

View file

@ -527,7 +527,7 @@ long MemoryReader::Seek (long offset, int origin)
break;
}
FilePos=clamp<long>(offset,0,Length-1);
FilePos=clamp<long>(offset,0,Length);
return 0;
}
@ -583,7 +583,7 @@ long MemoryArrayReader::Seek (long offset, int origin)
break;
}
FilePos=clamp<long>(offset,0,Length-1);
FilePos=clamp<long>(offset,0,Length);
return 0;
}