Skip to content

Commit

Permalink
change error condition
Browse files Browse the repository at this point in the history
  • Loading branch information
DomFijan committed Aug 17, 2024
1 parent 752a081 commit 4c016e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hoomd/GSDDequeWriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void GSDDequeWriter::dump(long int start, long int end, bool empty_buffer)
{
throw std::runtime_error("Burst.dump's end index is out of range.");
}
if (start < 0 || start >= buffer_length)
if (start < 0 || start > buffer_length)
{
throw std::runtime_error("Burst.dump's start index is out of range.");
}
Expand Down

0 comments on commit 4c016e5

Please sign in to comment.