diff options
author | Jack Lloyd <[email protected]> | 2016-05-09 18:23:24 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-05-09 18:23:24 -0400 |
commit | 2d0bafb646e238978bce966b9adae31fa92fb26b (patch) | |
tree | f0c1cd1397294ddea9c867643333c35603323b2b /src/lib/math/numbertheory/make_prm.cpp | |
parent | 5dd6fbc45b356fa34717e77bc252392016baf8a9 (diff) | |
parent | a0a2b66b3b6ba9dd94f924ef9639570f4a4ae2b6 (diff) |
Merge GH #484 use explicit casts to avoids MSVC warning C4267
Diffstat (limited to 'src/lib/math/numbertheory/make_prm.cpp')
-rw-r--r-- | src/lib/math/numbertheory/make_prm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/math/numbertheory/make_prm.cpp b/src/lib/math/numbertheory/make_prm.cpp index 3d82adf06..acd187063 100644 --- a/src/lib/math/numbertheory/make_prm.cpp +++ b/src/lib/math/numbertheory/make_prm.cpp @@ -66,7 +66,7 @@ BigInt random_prime(RandomNumberGenerator& rng, secure_vector<u16bit> sieve(sieve_size); for(size_t j = 0; j != sieve.size(); ++j) - sieve[j] = p % PRIMES[j]; + sieve[j] = static_cast<u16bit>(p % PRIMES[j]); size_t counter = 0; while(true) |