mirror of
https://github.com/openharmony/developtools_global_resource_tool.git
synced 2026-07-19 11:31:44 -04:00
@@ -161,6 +161,9 @@ uint64_t IdWorker::GetMaxId(uint64_t startId) const
|
||||
while ((flag & startId) == 0) {
|
||||
flag = flag << 1;
|
||||
}
|
||||
if (startId + flag < 1) {
|
||||
return 0;
|
||||
}
|
||||
return (startId + flag - 1) > 0 ? (startId + flag - 1) : 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user