loggerd/logger.cc: use std::stoul instead of std::stol (#32133)

old-commit-hash: 99285ef1f2
This commit is contained in:
Dean Lee 2024-04-10 01:46:07 +08:00 committed by GitHub
parent fc1d2edf81
commit 0147c559c0
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ std::string logger_get_identifier(std::string key) {
Params params;
uint32_t cnt;
try {
cnt = std::stol(params.get(key));
cnt = std::stoul(params.get(key));
} catch (std::exception &e) {
cnt = 0;
}