diff options
| author | Neil <nyamatongwe@gmail.com> | 2014-06-22 13:46:50 +1000 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2014-06-22 13:46:50 +1000 | 
| commit | 6245be90aad17b4920525bea08d5718992f56ddd (patch) | |
| tree | b82f484776e82c8f611b999cbf2c8cc537e042e1 | |
| parent | a0ebebe503affd3447a29c1253579f392cc45132 (diff) | |
| download | scintilla-mirror-6245be90aad17b4920525bea08d5718992f56ddd.tar.gz | |
Extra casting to prevent warnings from cppcheck.
| -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 f61999a4b..b81fe5930 100644 --- a/src/PositionCache.cxx +++ b/src/PositionCache.cxx @@ -559,7 +559,7 @@ void PositionCacheEntry::Set(unsigned int styleNumber_, const char *s_,  		for (unsigned int i=0; i<len; i++) {  			positions[i] = positions_[i];  		} -		memcpy(reinterpret_cast<char *>(positions + len), s_, len); +		memcpy(reinterpret_cast<char *>(reinterpret_cast<void *>(positions + len)), s_, len);  	}  } @@ -578,7 +578,7 @@ void PositionCacheEntry::Clear() {  bool PositionCacheEntry::Retrieve(unsigned int styleNumber_, const char *s_,  	unsigned int len_, XYPOSITION *positions_) const {  	if ((styleNumber == styleNumber_) && (len == len_) && -		(memcmp(reinterpret_cast<char *>(positions + len), s_, len)== 0)) { +		(memcmp(reinterpret_cast<char *>(reinterpret_cast<void *>(positions + len)), s_, len)== 0)) {  		for (unsigned int i=0; i<len; i++) {  			positions_[i] = positions[i];  		} | 
