From 95422b2091d0b3205b1e74fe1f7595c7ae206cf1 Mon Sep 17 00:00:00 2001 From: Merry Date: Tue, 19 Apr 2022 16:52:14 +0100 Subject: [PATCH] mcl: bit_field: Fix incorrect argument order in replicate_element --- externals/mcl/CMakeLists.txt | 2 +- externals/mcl/include/mcl/bit/bit_field.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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