URL:
https://svn.lrde.epita.fr/svn/oln/trunk/milena
ChangeLog:
2007-11-05 Matthieu Garrigues <garrigues(a)lrde.epita.fr>
Fix an bug in make::image2d.
* mln/make/image2d.hh: (for (unsigned row = 0; row <= R; ++row))
replaced by...
(for (unsigned row = 0; row < R; ++row)) ...this.
---
image2d.hh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: trunk/milena/mln/make/image2d.hh
===================================================================
--- trunk/milena/mln/make/image2d.hh (revision 1428)
+++ trunk/milena/mln/make/image2d.hh (revision 1429)
@@ -59,8 +59,8 @@
image2d(V (&values)[R][C])
{
mln::image2d<V> tmp(R, C);
- for (unsigned row = 0; row <= R; ++row)
- for (unsigned col = 0; col <= C; ++col)
+ for (unsigned row = 0; row < R; ++row)
+ for (unsigned col = 0; col < C; ++col)
tmp(make::point2d(row, col)) = values[row][col];
return tmp;
}