Skip to content

Commit 207ce7e

Browse files
committed
gcc fixes
1 parent 25ff67e commit 207ce7e

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

storage.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ class planar_voxel_storage : public regular_voxel_storage {
630630
}
631631

632632
void Get(const vec_n<3, size_t>& xyz, void* loc) const {
633-
*((T::value_type_non_ref*)loc) = Get(xyz);
633+
*((typename T::value_type_non_ref*)loc) = Get(xyz);
634634
}
635635

636636
abstract_voxel_storage* boolean_union(const abstract_voxel_storage* other_) {
@@ -1636,7 +1636,7 @@ class chunked_voxel_storage : public abstract_chunked_voxel_storage {
16361636
vec_n<3, size_t> cxyz = xyz / chunk_size_;
16371637
abstract_voxel_storage* c = get_chunk(cxyz);
16381638
if (c == nullptr) {
1639-
(*(T::value_type_non_ref*) loc) = 0;
1639+
(*(typename T::value_type_non_ref*) loc) = 0;
16401640
}
16411641
c->Get(xyz - cxyz * chunk_size_, loc);
16421642
}

tests/test_edges.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ TEST(Volume, DISABLED_Edges) {
1919
}
2020
}
2121

22+
/*
2223
volume_filler volume(storage);
2324
volume.fill();
25+
*/
2426

2527
auto storage2 = edge_detect()(storage);
2628

tests/test_volume.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ TEST(DISABLED_Voxelizer, ApproxVolume) {
1919
}
2020
}
2121

22+
/*
2223
volume_filler volume(storage);
2324
volume.fill();
25+
*/
2426

2527
size_t ncx, ncy, ncz;
2628
storage->num_chunks().tie(ncx, ncy, ncz);

0 commit comments

Comments
 (0)