Update bit_manipulation/count_bits_flip.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
Yash Raj Singh 2022-01-03 10:23:18 +05:30 committed by GitHub
parent 66bb1bc30c
commit 7608314d86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,8 +40,8 @@ namespace count_bits_flip {
* @returns total number of bits needed to be flipped to convert A to B * @returns total number of bits needed to be flipped to convert A to B
*/ */
std::uint64_t countBitsFlip( std::uint64_t countBitsFlip(
std ::int64_t A, std::int64_t A,
std ::int64_t B) { // int64_t is preferred over int so that std::int64_t B) { // int64_t is preferred over int so that
// no Overflow can be there. // no Overflow can be there.
int count = int count =