]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/thread/example/parallel_accumulate.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / thread / example / parallel_accumulate.cpp
index 535b18656dfe21fe6c864209bb1e32429b1ab49d..acd72017eda92dada39b2087ee824d8ad7f48dc5 100644 (file)
@@ -37,7 +37,7 @@ struct accumulate_block
 template<typename Iterator,typename T>
 T parallel_accumulate(Iterator first,Iterator last,T init)
 {
-    unsigned long const length=std::distance(first,last);
+    unsigned long const length=static_cast<unsigned long>(std::distance(first,last));
 
     if(!length)
         return init;