diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2010-12-13 16:17:54 -0500 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2010-12-13 16:17:54 -0500 |
commit | 063c0623aaf5dad8d02e5eae5793c123cd7fc3fe (patch) | |
tree | c4037fae02aecb46d80df7df2bdd2c927245bad2 | |
parent | 8c16b9384e8b85abf9e51bc670e548bf5cd4a0c5 (diff) |
fix alignment tools bug
-rw-r--r-- | training/atools.cc | 2 |
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()) |