---
milena/ChangeLog | 4 ++++
milena/mln/geom/crop_without_localization.hh | 3 ++-
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index abe73a7..e9d45f1 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,3 +1,7 @@
+2011-11-21 Guillaume Lazzara <z(a)lrde.epita.fr>
+
+ * mln/geom/crop_without_localization.hh: Fix preconditions.
+
2011-11-16 Guillaume Lazzara <z(a)lrde.epita.fr>
Fix compilation Warnings with latest g++ versions.
diff --git a/milena/mln/geom/crop_without_localization.hh
b/milena/mln/geom/crop_without_localization.hh
index ed80c56..5ca5412 100644
--- a/milena/mln/geom/crop_without_localization.hh
+++ b/milena/mln/geom/crop_without_localization.hh
@@ -59,7 +59,8 @@ namespace mln
const B& b_in = exact(b_in_);
const B& b_out = exact(b_out_);
mln_precondition(input.is_valid());
- mln_precondition(b.is_valid());
+ mln_precondition(b_in.is_valid());
+ mln_precondition(b_out.is_valid());
mln_precondition(b_in <= input.domain());
mln_precondition(b_in.nsites() == b_out.nsites());
--
1.7.2.5
Show replies by date