diff options
author | Neil <unknown> | 2014-05-02 22:02:02 +1000 |
---|---|---|
committer | Neil <unknown> | 2014-05-02 22:02:02 +1000 |
commit | 20d6edd07a61856c02634971519c8519992d7346 (patch) | |
tree | 2665c0a9b559629d45b943ebc99c7353859359ec /src/PositionCache.h | |
parent | 566f2890290c87c5f8aaf0a47b9999d9d1956ed0 (diff) | |
download | scintilla-mirror-20d6edd07a61856c02634971519c8519992d7346.tar.gz |
Use unsigned int for calculating hash and secondary probe as overflow of signed
int is undefined in C++.
Diffstat (limited to 'src/PositionCache.h')
-rw-r--r-- | src/PositionCache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PositionCache.h b/src/PositionCache.h index 871bb6e46..d8ea0119d 100644 --- a/src/PositionCache.h +++ b/src/PositionCache.h @@ -111,7 +111,7 @@ public: void Set(unsigned int styleNumber_, const char *s_, unsigned int len_, XYPOSITION *positions_, unsigned int clock); void Clear(); bool Retrieve(unsigned int styleNumber_, const char *s_, unsigned int len_, XYPOSITION *positions_) const; - static int Hash(unsigned int styleNumber_, const char *s, unsigned int len); + static unsigned int Hash(unsigned int styleNumber_, const char *s, unsigned int len); bool NewerThan(const PositionCacheEntry &other) const; void ResetClock(); }; |