aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/math/numbertheory/make_prm.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-05-09 18:23:24 -0400
committerJack Lloyd <[email protected]>2016-05-09 18:23:24 -0400
commit2d0bafb646e238978bce966b9adae31fa92fb26b (patch)
treef0c1cd1397294ddea9c867643333c35603323b2b /src/lib/math/numbertheory/make_prm.cpp
parent5dd6fbc45b356fa34717e77bc252392016baf8a9 (diff)
parenta0a2b66b3b6ba9dd94f924ef9639570f4a4ae2b6 (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.cpp2
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)