Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pw_random: Fix implicit conversions in RandomGenerator
Fix implicit conversion from int to uint8_t in RandomGenerator::CountLeadingZeros. This conversion is safe because the __builtin_clz functions always return a positive value <= 64. This fixed compilation on Fuchsia. Test: pw watch Change-Id: Id7e29f80607e160c0315512aa9fca8da013cb90b Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/126510 Reviewed-by: Ali Zhang <[email protected]> Commit-Queue: Ben Lawson <[email protected]>
- Loading branch information