Use only signed/unsigned numbers with ParseInt/ParseUint respectively

Test: build
Change-Id: I4d950d4aa8d24c90d1fc9b1cbea0f324aeed56a3
This commit is contained in:
Tom Cherry 2018-10-05 14:29:47 -07:00
parent 64990d5b45
commit e0bc5a9aa2
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ uid_t llkProcGetUid(pid_t tid) {
}
content.erase(pos);
uid_t ret;
if (!android::base::ParseInt(content, &ret, uid_t(0))) {
if (!android::base::ParseUint(content, &ret, uid_t(0))) {
return -1;
}
return ret;