summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2010-12-13 16:17:54 -0500
committerChris Dyer <cdyer@cs.cmu.edu>2010-12-13 16:17:54 -0500
commit063c0623aaf5dad8d02e5eae5793c123cd7fc3fe (patch)
treec4037fae02aecb46d80df7df2bdd2c927245bad2
parent8c16b9384e8b85abf9e51bc670e548bf5cd4a0c5 (diff)
fix alignment tools bug
-rw-r--r--training/atools.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/training/atools.cc b/training/atools.cc
index 805e3c1d..42579627 100644
--- a/training/atools.cc
+++ b/training/atools.cc
@@ -26,7 +26,7 @@ struct Command {
virtual bool RequiresTwoOperands() const { return true; }
virtual void Apply(const Array2D<bool>& a, const Array2D<bool>& b, Array2D<bool>* x) = 0;
void EnsureSize(const Array2D<bool>& a, const Array2D<bool>& b, Array2D<bool>* x) {
- x->resize(max(a.width(), b.width()), max(a.height(), b.width()));
+ x->resize(max(a.width(), b.width()), max(a.height(), b.height()));
}
static bool Safe(const Array2D<bool>& a, int i, int j) {
if (i >= 0 && j >= 0 && i < a.width() && j < a.height())