commit b611f83661ffc302692e9878c7609ee5f5fda140
parent 5389b8e84a033951b807f53ec8d276e71bf25962
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Thu, 27 Sep 2018 16:25:39 +0200
Minor fix of the binary tree traversal
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/svx_bintree_trace_ray.c b/src/svx_bintree_trace_ray.c
@@ -75,11 +75,12 @@ bintree_trace_ray
struct svx_hit* hit)
{
#define STACK_LENGTH 23 /* #mantissa bits */
- ALIGN(64) struct stack_entry {
+ struct stack_entry {
float scale_exp2;
uint32_t depth;
struct buffer_index inode;
- } stack[STACK_LENGTH];
+ };
+ ALIGN(64) struct stack_entry stack[STACK_LENGTH];
STATIC_ASSERT(sizeof(struct stack_entry) == 16, Unexpected_sizeof_stack_entry);
struct buffer_index inode;