Cleanup: warning
This commit is contained in:
@@ -860,14 +860,13 @@ static void non_recursive_bvh_div_nodes(BVHTree *tree, BVHNode *branches_array,
|
||||
BVHDivNodesData cb_data = {
|
||||
.tree = tree, .branches_array = branches_array, .leafs_array = leafs_array,
|
||||
.tree_type = tree_type, .tree_offset = tree_offset, .data = &data,
|
||||
.first_of_next_level = 0, .depth = 0, .i = 0,
|
||||
.first_of_next_level = 0, .depth = 0, .i = 0,
|
||||
};
|
||||
|
||||
/* Loop tree levels (log N) loops */
|
||||
for (i = 1, depth = 1; i <= num_branches; i = i * tree_type + tree_offset, depth++) {
|
||||
const int first_of_next_level = i * tree_type + tree_offset;
|
||||
const int end_j = min_ii(first_of_next_level, num_branches + 1); /* index of last branch on this level */
|
||||
int j;
|
||||
|
||||
/* Loop all branches on this level */
|
||||
cb_data.first_of_next_level = first_of_next_level;
|
||||
|
||||
Reference in New Issue
Block a user