Don't use 'front' on a string.

This commit is contained in:
JoelKatz
2013-05-11 17:43:51 -07:00
parent bdd1a9589f
commit d5ce6e4d2e

View File

@@ -114,7 +114,7 @@ HashedObject::pointer HashedObjectStore::retrieveLevelDB(const uint256& hash)
return obj;
}
const unsigned char* bufPtr = reinterpret_cast<const unsigned char*>(&sData.front());
const unsigned char* bufPtr = reinterpret_cast<const unsigned char*>(&sData[0]);
uint32 index = htonl(*reinterpret_cast<const uint32*>(bufPtr));
int htype = bufPtr[8];