https://svn.lrde.epita.fr/svn/oln/trunk/milena
Index: ChangeLog
from Ugo Jardonnet <ugo.jardonnet(a)lrde.epita.fr>
Fix mln mean. mln_sum(T) MUST be divisible by unsigned.
* mln/accu/mean.hh: Fix here.
mean.hh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: mln/accu/mean.hh
--- mln/accu/mean.hh (revision 3177)
+++ mln/accu/mean.hh (working copy)
@@ -150,7 +150,7 @@
M
mean<T,S,M>::to_result() const
{
- S n = static_cast<S>(count_.to_result());
+ unsigned n = count_.to_result();
return static_cast<M>(sum_.to_result() / n);
}