commit 95cca20d5fdf5c62d6a021a99699ea1a046dbd0d
parent 96984b11ab60120b2822347617dbfa4077ba9a91
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Wed, 11 Jul 2018 11:24:19 +0200
Fix a GCC conversion warning when -fsanitize=undefined is enabled
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/svx_tree_builder.h b/src/svx_tree_builder.h
@@ -351,7 +351,7 @@ XD(builder_add_voxel)
if(mcode_xor < mcode_max_lvl) break;
/* Retrieve the node index of the next level */
- inode = (bldr->mcode >> (TREE_DIMENSION*(ilvl+2))) & (NCHILDREN-1);
+ inode = (int)(bldr->mcode >> (TREE_DIMENSION*(ilvl+2))) & (NCHILDREN-1);
/* The next voxel is not in the ilvl^th stack. Setup the parent node of the
* nodes registered into the stack */