Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NilFoundation/placeholder
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e0a3887ea125533f889e078e1518cc4c510af119
Choose a base ref
..
head repository: NilFoundation/placeholder
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 08bd958a700286a6f74a15e670981f4aea2a03ec
Choose a head ref
Showing with 3 additions and 1 deletion.
  1. +3 −1 crypto3/libs/multiprecision/include/nil/crypto3/multiprecision/big_uint.hpp
Original file line number Diff line number Diff line change
@@ -1269,7 +1269,9 @@ namespace nil::crypto3::multiprecision {
std::size_t bitcount = msb() + 1;

std::ptrdiff_t bit_location =
msv_first ? static_cast<std::ptrdiff_t>(bitcount - chunk_size) : 0;
msv_first ? static_cast<std::ptrdiff_t>(bitcount) -
static_cast<std::ptrdiff_t>(chunk_size)
: 0;
const std::ptrdiff_t bit_step =
msv_first ? (-static_cast<std::ptrdiff_t>(chunk_size))
: static_cast<std::ptrdiff_t>(chunk_size);