mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-11-29 23:45:34 +08:00
fix: CodeQL warnings (#1827)
* fix: CodeQL warnings * clang-format and clang-tidy fixes for4d357c46* clang-format and clang-tidy fixes for72322fb7* accept suggestion * clang-format and clang-tidy fixes for9a4dc07cCo-authored-by: David Leal <halfpacho@gmail.com> Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>
This commit is contained in:
@@ -462,7 +462,7 @@ class uint128_t {
|
||||
tmp <<= left;
|
||||
uint128_t quotient(0);
|
||||
uint128_t zero(0);
|
||||
while (left >= 0 && tmp2 >= p) {
|
||||
while (tmp2 >= p) {
|
||||
uint16_t shf = tmp2._lez() - tmp._lez();
|
||||
if (shf) {
|
||||
tmp >>= shf;
|
||||
|
||||
@@ -429,7 +429,7 @@ class uint256_t {
|
||||
tmp <<= left;
|
||||
uint256_t quotient(0);
|
||||
uint256_t zero(0);
|
||||
while (left >= 0 && tmp2 >= p) {
|
||||
while (tmp2 >= p) {
|
||||
uint16_t shf = tmp2._lez() - tmp._lez();
|
||||
if (shf) {
|
||||
tmp >>= shf;
|
||||
|
||||
Reference in New Issue
Block a user