mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-26 20:38:45 +08:00
Remove unnecessary casts that causes warnings. (#461)
This commit is contained in:
parent
29d711003f
commit
beadf9e898
@ -303,7 +303,7 @@ namespace etl
|
||||
//***************************************************************************
|
||||
size_t size_bytes() const
|
||||
{
|
||||
return etl::distance(pdata, static_cast<char* const>(pcurrent));
|
||||
return etl::distance(pdata, pcurrent);
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
@ -689,7 +689,7 @@ namespace etl
|
||||
template <typename T>
|
||||
size_t available() const
|
||||
{
|
||||
size_t used = etl::distance(pdata, reinterpret_cast<const char* const>(pcurrent));
|
||||
size_t used = etl::distance(pdata, pcurrent);
|
||||
|
||||
return (length - used) / sizeof(T);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user