mcl: bit_field: Fix incorrect argument order in replicate_element
This commit is contained in:
parent
de4154aa18
commit
95422b2091
2 changed files with 2 additions and 2 deletions
2
externals/mcl/CMakeLists.txt
vendored
2
externals/mcl/CMakeLists.txt
vendored
|
@ -1,7 +1,7 @@
|
||||||
cmake_minimum_required(VERSION 3.12 FATAL_ERROR)
|
cmake_minimum_required(VERSION 3.12 FATAL_ERROR)
|
||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
|
|
||||||
project(mcl LANGUAGES CXX VERSION 0.1.3)
|
project(mcl LANGUAGES CXX VERSION 0.1.4)
|
||||||
|
|
||||||
# Project options
|
# Project options
|
||||||
option(MCL_WARNINGS_AS_ERRORS "Warnings as errors" ON)
|
option(MCL_WARNINGS_AS_ERRORS "Warnings as errors" ON)
|
||||||
|
|
2
externals/mcl/include/mcl/bit/bit_field.hpp
vendored
2
externals/mcl/include/mcl/bit/bit_field.hpp
vendored
|
@ -192,7 +192,7 @@ constexpr T replicate_element(size_t element_size, T value) {
|
||||||
if (element_size == bitsizeof<T>) {
|
if (element_size == bitsizeof<T>) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
return replicate_element<T>(static_cast<T>(value | (value << element_size)), element_size * 2);
|
return replicate_element<T>(element_size * 2, static_cast<T>(value | (value << element_size)));
|
||||||
}
|
}
|
||||||
|
|
||||||
template<BitIntegral T>
|
template<BitIntegral T>
|
||||||
|
|
Loading…
Reference in a new issue