https://svn.lrde.epita.fr/svn/oln/trunk/milena
Index: ChangeLog
from Alexandre Abraham <abraham(a)lrde.epita.fr>
Fix for two ways functions.
* mln/value/shell.hh: Little fix for v2w_w2v functions.
shell.hh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: mln/value/shell.hh
--- mln/value/shell.hh (revision 3154)
+++ mln/value/shell.hh (working copy)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007, 2008 EPITA Research and Development Laboratory
+// Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory
//
// This file is part of the Olena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
@@ -162,7 +162,7 @@
template <typename F, typename I>
mln_value(I) shell_<F, I, Function_v2w_w2v<void> >::set_ (I &ima,
const mln_site(I) &s, const typename F::result &v)
{
- ima(s) = F().f_1(ima(s), v);
+ ima(s) = F().f_1(v, ima(s));
return ima(s);
}