summaryrefslogtreecommitdiff
path: root/training/atools.cc
diff options
context:
space:
mode:
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())