mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-06 05:52:12 +08:00
loggerd/logger.cc: use std::stoul instead of std::stol (#32133)
old-commit-hash: 99285ef1f2da4ba3852c376f4cae0c50e5dc3c79
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user