Merge pull request #2540 from dgkoch/dgkoch_build_fix
Fix warning in build
This commit is contained in:
@@ -698,7 +698,7 @@ public:
|
|||||||
void amendSymbolIdLevel(TSymbol& symbol)
|
void amendSymbolIdLevel(TSymbol& symbol)
|
||||||
{
|
{
|
||||||
// clamp level to avoid overflow
|
// clamp level to avoid overflow
|
||||||
uint64_t level = currentLevel() > MaxLevelInUniqueID ? MaxLevelInUniqueID : currentLevel();
|
uint64_t level = (uint32_t)currentLevel() > MaxLevelInUniqueID ? MaxLevelInUniqueID : currentLevel();
|
||||||
uint64_t symbolId = symbol.getUniqueId();
|
uint64_t symbolId = symbol.getUniqueId();
|
||||||
symbolId &= uniqueIdMask;
|
symbolId &= uniqueIdMask;
|
||||||
symbolId |= (level << LevelFlagBitOffset);
|
symbolId |= (level << LevelFlagBitOffset);
|
||||||
@@ -889,7 +889,7 @@ public:
|
|||||||
// Add current level in the high-bits of unique id
|
// Add current level in the high-bits of unique id
|
||||||
void updateUniqueIdLevelFlag() {
|
void updateUniqueIdLevelFlag() {
|
||||||
// clamp level to avoid overflow
|
// clamp level to avoid overflow
|
||||||
uint64_t level = currentLevel() > MaxLevelInUniqueID ? MaxLevelInUniqueID : currentLevel();
|
uint64_t level = (uint32_t)currentLevel() > MaxLevelInUniqueID ? MaxLevelInUniqueID : currentLevel();
|
||||||
uniqueId &= uniqueIdMask;
|
uniqueId &= uniqueIdMask;
|
||||||
uniqueId |= (level << LevelFlagBitOffset);
|
uniqueId |= (level << LevelFlagBitOffset);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user