From 4c016e5fd33238cd65afb28fb5bb9dafa6a84d94 Mon Sep 17 00:00:00 2001 From: Domagoj Fijan Date: Sat, 17 Aug 2024 01:47:54 -0400 Subject: [PATCH] change error condition --- hoomd/GSDDequeWriter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hoomd/GSDDequeWriter.cc b/hoomd/GSDDequeWriter.cc index b2a7e4f313..e23c89aaa1 100644 --- a/hoomd/GSDDequeWriter.cc +++ b/hoomd/GSDDequeWriter.cc @@ -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."); }