---
ChangeLog | 4 ++++
milena/mln/labeling/compute_image.hh | 3 ++-
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index b9b99a2..af34e10 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-07-17 Guillaume Lazzara <lazzara(a)lrde.epita.fr>
+
+ * mln/labeling/compute_image.hh: Fix an invalid assertion.
+
2009-07-15 Guillaume Lazzara <lazzara(a)lrde.epita.fr>
Improve devtools.
diff --git a/milena/mln/labeling/compute_image.hh b/milena/mln/labeling/compute_image.hh
index 16a52d7..a96b3bc 100644
--- a/milena/mln/labeling/compute_image.hh
+++ b/milena/mln/labeling/compute_image.hh
@@ -118,6 +118,7 @@ namespace mln
const mln_value(L)& nlabels)
{
const L& labels = exact(labels_);
+ (void) nlabels;
typedef mln_ch_value(L, A) O;
O output;
@@ -126,7 +127,7 @@ namespace mln
mln_piter(L) p(labels.domain());
for_all(p)
{
- mln_assertion(labels(p) < nlabels);
+ mln_assertion(labels(p) <= nlabels);
output(p) = a[labels(p)];
}
--
1.5.6.5
Show replies by date