diff --git a/srsepc/src/main.cc b/srsepc/src/main.cc index 8ce483996..7f4eaed66 100644 --- a/srsepc/src/main.cc +++ b/srsepc/src/main.cc @@ -215,16 +215,8 @@ void parse_args(all_args_t* args, int argc, char* argv[]) sstr >> tmp; args->mme_args.s1ap_args.mme_code = tmp; } - { - std::stringstream sstr; - sstr << std::hex << vm["mme.tac"].as(); - sstr >> args->mme_args.s1ap_args.tac; - } - { - std::stringstream sstr; - sstr << std::hex << vm["mme.lac"].as(); - sstr >> args->mme_args.s1ap_args.lac; - } + args->mme_args.s1ap_args.tac = std::stoi(vm["mme.tac"].as(), nullptr, 0); + args->mme_args.s1ap_args.lac = std::stoi(vm["mme.lac"].as(), nullptr, 0); // Convert MCC/MNC strings if (!srsran::string_to_mcc(mcc, &args->mme_args.s1ap_args.mcc)) {