diff --git a/src/iforward_list.h b/src/iforward_list.h index 775cace0..98ecdc20 100644 --- a/src/iforward_list.h +++ b/src/iforward_list.h @@ -426,7 +426,7 @@ namespace etl void pop_front() { #if defined(ETL_CHECK_PUSH_POP) - ETL_ASSERT(!full(), ETL_ERROR(forward_list_empty)); + ETL_ASSERT(!empty(), ETL_ERROR(forward_list_empty)); #endif remove_node_after(start_node); } @@ -500,7 +500,7 @@ namespace etl { // Set up the next free node. Data_Node& data_node = allocate_data_node(value); - insert_node(*position.p_node, data_node); + insert_node_after(*position.p_node, data_node); } }