mcl: bit_field: Fix incorrect argument order in replicate_element

This commit is contained in:
Merry 2022-04-19 16:52:14 +01:00
parent de4154aa18
commit 95422b2091
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.12 FATAL_ERROR)
include(GNUInstallDirs)
project(mcl LANGUAGES CXX VERSION 0.1.3)
project(mcl LANGUAGES CXX VERSION 0.1.4)
# Project options
option(MCL_WARNINGS_AS_ERRORS "Warnings as errors" ON)

View file

@ -192,7 +192,7 @@ constexpr T replicate_element(size_t element_size, T value) {
if (element_size == bitsizeof<T>) {
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>