Use only signed/unsigned numbers with ParseInt/ParseUint respectively
Test: build Change-Id: I4d950d4aa8d24c90d1fc9b1cbea0f324aeed56a3
This commit is contained in:
parent
64990d5b45
commit
e0bc5a9aa2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue