Skip to content

Commit

Permalink
Fix warning.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: d6a208eafd95a36826a057e0e35128fefaee1c49
  • Loading branch information
levlam committed Apr 30, 2019
1 parent 4119173 commit 73b9813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tdutils/td/utils/bits.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ inline int32 count_bits32(uint32 x) {

inline int32 count_bits64(uint64 x) {
#if defined(_M_X64)
return __popcnt64(x);
return static_cast<int32>(__popcnt64(x));
#else
return count_bits32(static_cast<uint32>(x >> 32)) + count_bits32(static_cast<uint32>(x));
#endif
Expand Down

0 comments on commit 73b9813

Please sign in to comment.