1
0
Fork 0

fix MSVC compile warning

This commit is contained in:
jsteemann 2017-05-16 12:04:20 +02:00
parent 4c2ce35538
commit b9fbad02b7
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ std::pair<bool, int32_t> RocksDBKey::geoValues(rocksdb::Slice const& slice) {
RocksDBEntryType type = static_cast<RocksDBEntryType>(*slice.data());
TRI_ASSERT(type == RocksDBEntryType::GeoIndexValue);
uint64_t val = uint64FromPersistent(slice.data() + sizeof(char) + sizeof(uint64_t));
bool isSlot = (bool)(val & 0xFFU);// lowest byte is 0xFF if true
bool isSlot = ((val & 0xFFULL) > 0);// lowest byte is 0xFF if true
return std::pair<bool, int32_t>(isSlot, (val >> 32));
}