Skip to content

Commit

Permalink
🛠 Fix unsigned char
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePhD committed Dec 5, 2021
1 parent b764e54 commit 5731efd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ztd/idk/detail/bit.intrinsic.impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ namespace ztd {
}
#else
if constexpr (::std::is_same_v<_Value, char> || ::std::is_same_v<_Value, unsigned char>) {
return;
return ztdc_count_onesuc(static_cast<unsigned char>(__value));
}
else if constexpr (::std::is_same_v<_Value, unsigned short>) {
return ztdc_count_onesus(__value);
Expand Down

0 comments on commit 5731efd

Please sign in to comment.