diff --git a/gtsam/nonlinear/Expression.h b/gtsam/nonlinear/Expression.h index 85b223440..d44d21cd7 100644 --- a/gtsam/nonlinear/Expression.h +++ b/gtsam/nonlinear/Expression.h @@ -170,7 +170,7 @@ private: const FastVector& dims, std::vector& H) const { // H should be pre-allocated - assert(H->size()==keys.size()); + assert(H.size()==keys.size()); // Pre-allocate and zero VerticalBlockMatrix static const int Dim = traits::dimension::value;