mirror of
https://github.com/ETLCPP/etl.git
synced 2026-04-30 19:09:10 +08:00
Fixed ambiguous function call for clang
This commit is contained in:
parent
fb54f23e5d
commit
e4e61cfe69
2
.github/workflows/clang.yml
vendored
2
.github/workflows/clang.yml
vendored
@ -1,7 +1,7 @@
|
||||
name: clang
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
branches: [ master, feature/mem_cast ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
|
||||
@ -529,7 +529,9 @@ namespace etl
|
||||
//***********************************
|
||||
ETL_NODISCARD size_t alignment() const
|
||||
{
|
||||
const uintptr_t p = reinterpret_cast<uintptr_t>(pbuffer);
|
||||
typedef typename etl::smallest_uint_for_bits<sizeof(uintptr_t)* CHAR_BIT>::type type;
|
||||
|
||||
const uintptr_t p = reinterpret_cast<type>(pbuffer);
|
||||
|
||||
return 1U << etl::count_trailing_zeros(p);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user