diff --git a/src/engine/lists.c b/src/engine/lists.c index 87ba34a6a..7e3b4a3f0 100644 --- a/src/engine/lists.c +++ b/src/engine/lists.c @@ -11,7 +11,8 @@ #include "jam.h" #include "lists.h" -#include "assert.h" +#include + struct freelist_node { struct freelist_node * next; }; @@ -239,7 +240,7 @@ void list_free( LIST * head ) LIST * list_pop_front( LIST * l ) { unsigned size = list_length( l ); - assert( size != 0 ); + assert( size ); --size; object_free( list_front( l ) );