Skip to content

Commit 72cd733

Browse files
committed
small changes to test case
1 parent a66190b commit 72cd733

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

storage.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,7 @@ class continuous_voxel_storage : public regular_voxel_storage {
469469
} else if (T::size_in_bits < 8U) {
470470
size_t z8 = z / (8U / T::size_in_bits);
471471
uint8_t r = z % (8U / T::size_in_bits);
472+
// @todo why this integral_constant, isn't size_in_bits always < 8U
472473
return RefOrBoolImpl(std::integral_constant<bool, T::size_in_bits < 8U>{}, data_[x + y * dimx_ + z8 * dimx_ * dimy_], r);
473474
}
474475
}

tests/test_collapse.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ TEST(SweepAndCollapse, Same) {
2020
ASSERT_TRUE(result->Get(loc));
2121

2222
auto result2 = cc(swept, 0, 0, -1);
23-
size_t value;
23+
ASSERT_EQ(result2->value_bits(), 32);
24+
size_t value = 0;
2425
result2->Get(loc, &value);
2526
ASSERT_EQ(value, 5);
2627
// @nb dz=1 because the extrusion depth is now stored in the voxel value

0 commit comments

Comments
 (0)