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

old-commit-hash: 99285ef1f2da4ba3852c376f4cae0c50e5dc3c79
This commit is contained in:
Dean Lee
2024-04-10 01:46:07 +08:00
committed by GitHub
parent fc1d2edf81
commit 0147c559c0
+1 -1
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;
}