From 3ca18d8a6dcff2dbe613bf8aba47e94e75a88c98 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 23 Jul 2018 17:52:52 -0400 Subject: [PATCH] u128: Make Bit() a const-qualified member function This function doesn't modify the struct members, so it can be made const. --- src/common/u128.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/u128.h b/src/common/u128.h index 71e4bcde..1aa8a76f 100644 --- a/src/common/u128.h +++ b/src/common/u128.h @@ -34,7 +34,7 @@ struct u128 { u64 upper = 0; template - bool Bit() { + bool Bit() const { static_assert(bit_position < 128); if constexpr (bit_position < 64) { return Common::Bit(lower);