]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/random/detail/qrng_base.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / random / detail / qrng_base.hpp
index 089bd6219570ab6a4e4f783909d84209d1e66ad2..5eeacfb78029418e577144707c986e8f4347661a 100644 (file)
@@ -236,7 +236,7 @@ private:
   // and preserves the position of the element-to-read
   void discard_vector(boost::uintmax_t z)
   {
-    const boost::uintmax_t max_z = std::numeric_limits<size_type>::max() - seq_count;
+    const boost::uintmax_t max_z = (std::numeric_limits<size_type>::max)() - seq_count;
 
     // Don't allow seq_count + z overflows here
     if (max_z < z)