]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/math/special_functions/round.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / math / special_functions / round.hpp
index e21f7185d18db1b9f3e427a8e1e471d72bb16c38..71439a6f6bd87b22eb647c0c2c64cad18e23cd6a 100644 (file)
@@ -35,7 +35,7 @@ inline typename tools::promote_args<T>::type round(const T& v, const Policy& pol
       // special case to avoid rounding error on the direct
       // predecessor of +0.5 resp. the direct successor of -0.5 in
       // IEEE floating point types
-      return 0;
+      return static_cast<result_type>(0);
    }
    else if (v > 0)
    {