diff --git a/externals/mcl/CMakeLists.txt b/externals/mcl/CMakeLists.txt index c1c28f61..49327646 100644 --- a/externals/mcl/CMakeLists.txt +++ b/externals/mcl/CMakeLists.txt @@ -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) diff --git a/externals/mcl/include/mcl/bit/bit_field.hpp b/externals/mcl/include/mcl/bit/bit_field.hpp index e4fca8ef..71d8b4a8 100644 --- a/externals/mcl/include/mcl/bit/bit_field.hpp +++ b/externals/mcl/include/mcl/bit/bit_field.hpp @@ -192,7 +192,7 @@ constexpr T replicate_element(size_t element_size, T value) { if (element_size == bitsizeof) { return value; } - return replicate_element(static_cast(value | (value << element_size)), element_size * 2); + return replicate_element(element_size * 2, static_cast(value | (value << element_size))); } template