summaryrefslogtreecommitdiff
path: root/algebra.cpp
diff options
context:
space:
mode:
authordenisbider <denisbider@users.noreply.github.com>2016-04-20 17:10:01 -0600
committerdenisbider <denisbider@users.noreply.github.com>2016-04-20 17:10:01 -0600
commit938c0a8bf1e0d14bc0b8828b605890f3b088b7e1 (patch)
treecbe2b742836dd9d65755e78311bf01cbf7006264 /algebra.cpp
parent2dde105c3fea7a92a5ba08e23ab9f6a20dd8e69c (diff)
downloadcryptopp-git-938c0a8bf1e0d14bc0b8828b605890f3b088b7e1.tar.gz
Add size_t cast to resolve VS warning C4334
Resolve C4334: 'operator' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
Diffstat (limited to 'algebra.cpp')
-rw-r--r--algebra.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/algebra.cpp b/algebra.cpp
index 5a106c4a..d6c204bc 100644
--- a/algebra.cpp
+++ b/algebra.cpp
@@ -265,7 +265,7 @@ void AbstractGroup<T>::SimultaneousMultiply(T *results, const T &base, const Int
assert(expBegin->NotNegative());
exponents.push_back(WindowSlider(*expBegin++, InversionIsFast(), 0));
exponents[i].FindNextWindow();
- buckets[i].resize(1<<(exponents[i].windowSize-1), Identity());
+ buckets[i].resize(((size_t) 1) << (exponents[i].windowSize-1), Identity());
}
unsigned int expBitPosition = 0;