[mathic] 36/62: Inserted casts to silence some MSVC warnings.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Wed Apr 1 11:36:21 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository mathic.
commit 196d0043ac4c52011f92a6e59cb4b5b5c50ffa6a
Author: Bjarke Hammersholt Roune <bjarkehr.code at gmail.com>
Date: Wed Oct 10 17:56:05 2012 +0200
Inserted casts to silence some MSVC warnings.
---
src/mathic/HashTable.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mathic/HashTable.h b/src/mathic/HashTable.h
index 1fd407c..8a20b6e 100755
--- a/src/mathic/HashTable.h
+++ b/src/mathic/HashTable.h
@@ -155,7 +155,7 @@ namespace mathic {
mConf(conf)
{
mHashTable.resize(mTableSize);
- mMaxCountBeforeRebuild = mRebuildThreshold * mTableSize;
+ mMaxCountBeforeRebuild = static_cast<size_t>(mRebuildThreshold * mTableSize);
}
template<class C>
@@ -214,7 +214,7 @@ namespace mathic {
}
if (mNodeCount > mMaxCountBeforeRebuild)
- grow(mLogTableSize + 2); // increase by a factor of 4??
+ grow(static_cast<unsigned int>(mLogTableSize + 2)); // increase by a factor of 4??
MATHIC_ASSERT(computeNodeCount() == mNodeCount);
return std::pair<bool, Handle *>(true,result);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mathic.git
More information about the debian-science-commits
mailing list