From 938c0a8bf1e0d14bc0b8828b605890f3b088b7e1 Mon Sep 17 00:00:00 2001 From: denisbider Date: Wed, 20 Apr 2016 17:10:01 -0600 Subject: [PATCH] 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?) --- algebra.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/algebra.cpp b/algebra.cpp index 5a106c4a..d6c204bc 100644 --- a/algebra.cpp +++ b/algebra.cpp @@ -265,7 +265,7 @@ void AbstractGroup::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;