medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 09e32aed93fea2c51eb72d0858e599508663c181
parent 97c2f9bd3936b0e72025eff79a4e1b3c261f50c6
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Fri Nov 18 19:51:39 +0200

Warnings, ASSERT

Diffstat:
btt.cc | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/btt.cc b/btt.cc @@ -45,8 +45,8 @@ static void btt_link_diamond( MemoryArena * arena, BTT * node ) { } static void btt_split( MemoryArena * arena, BTT * node ) { - assert( node ); - assert( !node->left && !node->right ); + ASSERT( node != NULL ); + ASSERT( node->left == NULL && node->right == NULL ); if( node->bottom && node->bottom->bottom != node ) { btt_split( arena, node->bottom ); @@ -88,7 +88,7 @@ static void btt_build( v2s32 mid = ( v0 + v2 ) / 2; if( !node->left ) { - assert( !node->right ); + ASSERT( !node->right ); if( btt_should_split( hm, v0, v1, v2, mid ) ) { btt_split( arena, node ); @@ -96,7 +96,7 @@ static void btt_build( } if( node->left ) { - assert( node->right ); + ASSERT( node->right ); btt_build( hm, arena, node->left, v1, mid, v0 ); btt_build( hm, arena, node->right, v2, mid, v1 );