mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
use abs to make sure the id is not negative
PiperOrigin-RevId: 631891168
This commit is contained in:
committed by
Copybara-Service
parent
3b701c78f3
commit
bc44fee374
@@ -114,7 +114,7 @@ int64_t GenerateIdFromByteArray(const ByteArray& input) {
|
||||
}
|
||||
if (id == std::numeric_limits<int64_t>::min())
|
||||
return std::numeric_limits<int64_t>::max();
|
||||
return id;
|
||||
return std::abs(id);
|
||||
}
|
||||
|
||||
void CredentialManagerImpl::GenerateCredentials(
|
||||
|
||||
Reference in New Issue
Block a user