From 063c0623aaf5dad8d02e5eae5793c123cd7fc3fe Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Mon, 13 Dec 2010 16:17:54 -0500 Subject: fix alignment tools bug --- training/atools.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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& a, const Array2D& b, Array2D* x) = 0; void EnsureSize(const Array2D& a, const Array2D& b, Array2D* 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& a, int i, int j) { if (i >= 0 && j >= 0 && i < a.width() && j < a.height()) -- cgit v1.2.3