issue #2770: fix some warning

This commit is contained in:
boyu0 2013-11-11 18:28:59 +08:00
parent 9b99872067
commit d75c96443d
1 changed files with 1 additions and 1 deletions

View File

@ -387,7 +387,7 @@ bool CCBReader::readHeader()
int magicBytes = *((int*)(this->_bytes + this->_currentByte));
this->_currentByte += 4;
if(CC_SWAP_INT32_LITTLE_TO_HOST(magicBytes) != 'ccbi') {
if(CC_SWAP_INT32_LITTLE_TO_HOST(magicBytes) != (*reinterpret_cast<const int*>("ccbi"))) {
return false;
}