Skip to content

Commit

Permalink
Merge branch 'hotfix/#948-Bug-in-queue-pop-can-break-queue.empty()' i…
Browse files Browse the repository at this point in the history
…nto development
  • Loading branch information
John Wellbelove committed Aug 31, 2024
2 parents f77d91d + 3612390 commit 4601257
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion include/etl/queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ namespace etl
void pop()
{
#if defined(ETL_CHECK_PUSH_POP)
ETL_ASSERT(!empty(), ETL_ERROR(queue_empty));
ETL_ASSERT_OR_RETURN(!empty(), ETL_ERROR(queue_empty));
#endif
p_buffer[out].~T();
del_out();
Expand Down
2 changes: 1 addition & 1 deletion include/etl/stack.h
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ namespace etl
void pop()
{
#if defined(ETL_CHECK_PUSH_POP)
ETL_ASSERT(!empty(), ETL_ERROR(stack_empty));
ETL_ASSERT_OR_RETURN(!empty(), ETL_ERROR(stack_empty));
#endif
p_buffer[top_index].~T();
base_t::del_out();
Expand Down
2 changes: 1 addition & 1 deletion include/etl/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ SOFTWARE.

#define ETL_VERSION_MAJOR 20
#define ETL_VERSION_MINOR 39
#define ETL_VERSION_PATCH 3
#define ETL_VERSION_PATCH 4

#define ETL_VERSION ETL_STRING(ETL_VERSION_MAJOR) "." ETL_STRING(ETL_VERSION_MINOR) "." ETL_STRING(ETL_VERSION_PATCH)
#define ETL_VERSION_W ETL_WIDE_STRING(ETL_VERSION_MAJOR) L"." ETL_WIDE_STRING(ETL_VERSION_MINOR) L"." ETL_WIDE_STRING(ETL_VERSION_PATCH)
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Embedded Template Library",
"version": "20.39.3",
"version": "20.39.4",
"authors": {
"name": "John Wellbelove",
"email": "[email protected]"
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Embedded Template Library
version=20.39.3
version=20.39.4
author= John Wellbelove <[email protected]>
maintainer=John Wellbelove <[email protected]>
license=MIT
Expand Down
6 changes: 6 additions & 0 deletions support/Release notes.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
===============================================================================
20.39.4

#948 Bug in queue pop can break queue.empty()
Also included etl::stack in the fix.

===============================================================================
20.39.3

Updates:
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.39.3
20.39.4

0 comments on commit 4601257

Please sign in to comment.