mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-14 09:22:05 +08:00
loggerd/logger.cc: use std::stoul instead of std::stol (#32133)
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