Merge pull request #490 from bska/fix-index-oob

Ensure Correctly Sized ACTNUM Vector
This commit is contained in:
Bård Skaflestad 2018-09-12 10:09:24 +02:00 committed by GitHub
commit 2ea1b7860f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,7 +133,7 @@ BOOST_AUTO_TEST_CASE(ActiveCompletions) {
completions.add( completion2 );
completions.add( completion3 );
std::vector<int> actnum(1000,1);
std::vector<int> actnum(grid.getCartesianSize(), 1);
actnum[0] = 0;
grid.resetACTNUM( actnum.data() );