star-vx

Structuring voxels for ray-tracing
git clone git://git.meso-star.fr/star-vx.git
Log | Files | Refs | README | LICENSE

commit b71782f35426f13c94e1cc72cfa1f14d586186b9
parent 9084849da45305239d79dae39d0ffa5d541274b4
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Mon, 24 Jul 2023 10:30:12 +0200

Fix warning when comparing int with different signs

Diffstat:
Msrc/svx_tree_builder.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/svx_tree_builder.h b/src/svx_tree_builder.h @@ -397,7 +397,7 @@ XD(builder_add_voxel) * The last tree level is actually the level that contains the root node * while the penultimate describes the root node itself. These 2 levels * contain all the voxels and can be skipped */ - FOR_EACH(ilvl, 0, bldr->tree_depth-2/*The 2 last voxels contain all voxels*/) { + FOR_EACH(ilvl, 0, (size_t)bldr->tree_depth-2/*The 2 last voxels contain all voxels*/) { uint32_t parent_coords[3] = {UINT32_MAX, UINT32_MAX, UINT32_MAX}; double parent_sz[3]; double parent_low[3];