diff options
author | nyamatongwe <devnull@localhost> | 2011-06-25 11:29:37 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-06-25 11:29:37 +1000 |
commit | 00fe734664e797fc5df56f00a77d071c314c5b9c (patch) | |
tree | 4151249b020594defbfdb157a777bc7a43bad3c4 /src/PositionCache.cxx | |
parent | 509cc0afef07cd8912e18151a08190b58763360b (diff) | |
download | scintilla-mirror-00fe734664e797fc5df56f00a77d071c314c5b9c.tar.gz |
Add casts to avoid warnings from SDK 64-bit compiler.
Diffstat (limited to 'src/PositionCache.cxx')
-rw-r--r-- | src/PositionCache.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PositionCache.cxx b/src/PositionCache.cxx index 5f3ce81b3..8a195caac 100644 --- a/src/PositionCache.cxx +++ b/src/PositionCache.cxx @@ -605,11 +605,11 @@ void PositionCache::MeasureWidths(Surface *surface, ViewStyle &vstyle, unsigned // Two way associative: try two probe positions. int hashValue = PositionCacheEntry::Hash(styleNumber, s, len); - probe = hashValue % size; + probe = static_cast<int>(hashValue % size); if (pces[probe].Retrieve(styleNumber, s, len, positions)) { return; } - int probe2 = (hashValue * 37) % size; + int probe2 = static_cast<int>((hashValue * 37) % size); if (pces[probe2].Retrieve(styleNumber, s, len, positions)) { return; } |