Merge pull request #455 from borglab/fix/frobenius-factor-warning

Fix warning in FrobeniusWormholeFactor
release/4.3a0
Varun Agrawal 2020-08-11 14:26:04 -04:00 committed by GitHub
commit a1e16bb868
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -67,7 +67,8 @@ FrobeniusWormholeFactor::FrobeniusWormholeFactor(
G_ = boost::make_shared<Matrix>();
*G_ = SOn::VectorizedGenerators(p); // expensive!
}
if (G_->rows() != pp_ || G_->cols() != SOn::Dimension(p))
if (static_cast<size_t>(G_->rows()) != pp_ ||
static_cast<size_t>(G_->cols()) != SOn::Dimension(p))
throw std::invalid_argument("FrobeniusWormholeFactor: passed in generators "
"of incorrect dimension.");
}