Att param as unsigned integer

Change-Id: I4cd611c5e60e7c22d17c657a8ea5663dfb57e781


[ROCm/rocprofiler commit: f13f221780]
이 커밋은 다음에 포함됨:
Giovanni LB
2023-12-04 15:46:02 -03:00
커밋한 사람 Giovanni Baraldi
부모 d4a2b49f86
커밋 3615f5e3af
+2 -2
파일 보기
@@ -372,9 +372,9 @@ att_parsed_input_t GetATTParams() {
try {
auto hexa_pos = line.find("0x"); // Is it hex?
if (hexa_pos != std::string::npos)
param_value = stoi(line.substr(hexa_pos + 2), 0, 16); // hexadecimal
param_value = stoul(line.substr(hexa_pos + 2), 0, 16); // hexadecimal
else
param_value = stoi(line, 0, 10); // decimal
param_value = stoul(line, 0, 10); // decimal
} catch (...) {
printf("Error: Invalid parameter value %s\n", line.c_str());
continue;