summaryrefslogtreecommitdiff
path: root/training/atools.cc
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
commit6d2a75d7deb35fcb2fac674190c19e0a0143aaed (patch)
tree5f0df597bbf0eeccfb70192e2d80741b68f57382 /training/atools.cc
parentf5cf383fffc3dee05c7f24733db45d0260f486ed (diff)
fix alignment tools bug
Diffstat (limited to 'training/atools.cc')
-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())