]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/iostreams/example/container_device.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / iostreams / example / container_device.hpp
index 615dbef09729f79b9199a1b66c8dbde6cdd25e65..cb9d537f246272124b125be26373bbfd8ced1c66 100644 (file)
@@ -138,7 +138,7 @@ public:
         }
 
         // Check for errors
-        if (next < 0 || next >= static_cast<stream_offset>(container_.size()))
+        if (next < 0 || next > static_cast<stream_offset>(container_.size()))
             throw BOOST_IOSTREAMS_FAILURE("bad seek offset");
 
         pos_ = next;