Merge "Use only signed/unsigned numbers with ParseInt/ParseUint respectively"

This commit is contained in:
Treehugger Robot 2018-10-07 17:34:10 +00:00 committed by Gerrit Code Review
commit 6b39f9d475

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;