mirror of https://gitee.com/bigwinds/arangodb
fix MSVC compile warning
This commit is contained in:
parent
4c2ce35538
commit
b9fbad02b7
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue