Skip to content

Commit 8d971ad

Browse files
committed
Remove unnecessary comment
Signed-off-by: Andrew Sasmito <asasmito1920@gmail.com>
1 parent 2262c06 commit 8d971ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp/csp/core/DynamicBitSet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class DynamicBitSet
160160
static constexpr nbit_type nbits() { return sizeof( value_type ) * 8; }
161161

162162
template<typename U, std::enable_if_t<std::is_unsigned<U>::value, bool> = true>
163-
static constexpr nbit_type log2( U n ) { return nbits<U>() - clz( n ) - 1; } //upcast to 32 bit to avoid truncation for log2
163+
static constexpr nbit_type log2( U n ) { return nbits<U>() - clz( n ) - 1; }
164164

165165
static constexpr node_type mask( nbit_type bitIndex ) { return ( node_type )1 << bitIndex; }
166166

0 commit comments

Comments
 (0)