安全规范告警

Signed-off-by: fangyunzhong <fangyunzhong2@huawei.com>
This commit is contained in:
fangyunzhong
2024-04-16 17:02:39 +08:00
parent 1d2ee3c7ca
commit 40cb8239ed
13 changed files with 69 additions and 22 deletions
+2 -2
View File
@@ -182,9 +182,9 @@ int64_t IdWorker::GenerateSysId(ResType resType, const string &name)
return -1;
}
int64_t IdWorker::GetMaxId(int64_t startId) const
uint64_t IdWorker::GetMaxId(uint64_t startId) const
{
int64_t flag = 1;
uint64_t flag = 1;
while ((flag & startId) == 0) {
flag = flag << 1;
}