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

old-commit-hash: 99285ef1f2
pull/32199/head
Dean Lee 1 year ago committed by GitHub
parent fc1d2edf81
commit 0147c559c0
  1. 2
      system/loggerd/logger.cc

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

Loading…
Cancel
Save