diff options
author | weidai <weidai11@users.noreply.github.com> | 2006-03-13 13:26:41 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2006-03-13 13:26:41 +0000 |
commit | 922fdeb1508e89b25d684378a269e319c927d91d (patch) | |
tree | f30468f446dfdde7bc27bc6c82de67f227721b05 /algebra.cpp | |
parent | 80a9a45ad09512f6d2dd4f806ff774d79fcda5df (diff) | |
download | cryptopp-git-922fdeb1508e89b25d684378a269e319c927d91d.tar.gz |
fix MSVC 2005 warnings
Diffstat (limited to 'algebra.cpp')
-rw-r--r-- | algebra.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/algebra.cpp b/algebra.cpp index 59ff2de8..599ea329 100644 --- a/algebra.cpp +++ b/algebra.cpp @@ -236,12 +236,12 @@ struct WindowSlider exp >>= skipCount; windowBegin += skipCount; - expWindow = exp % (1 << windowSize); + expWindow = word32(exp % (word(1) << windowSize)); if (fastNegate && exp.GetBit(windowSize)) { negateNext = true; - expWindow = (1 << windowSize) - expWindow; + expWindow = (word32(1) << windowSize) - expWindow; exp += windowModulus; } else @@ -249,7 +249,8 @@ struct WindowSlider } Integer exp, windowModulus; - unsigned int windowSize, windowBegin, expWindow; + unsigned int windowSize, windowBegin; + word32 expWindow; bool fastNegate, negateNext, firstTime, finished; }; |