Skip to content

Commit

Permalink
Fix useless cast
Browse files Browse the repository at this point in the history
  • Loading branch information
John Wellbelove committed Nov 24, 2023
1 parent 63d1a64 commit 0421156
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/etl/u8string.h
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ namespace etl
/// Hash function.
//*************************************************************************
#if ETL_USING_8BIT_TYPES
#include "private/diagnostic_useless_cast_push.h"
template <>
struct hash<etl::iu8string>
{
Expand Down Expand Up @@ -483,6 +484,7 @@ namespace etl
reinterpret_cast<const uint8_t*>(text.data() + text.size()));
}
};
#include "private/diagnostic_pop.h"
#endif

//***************************************************************************
Expand Down

0 comments on commit 0421156

Please sign in to comment.