Use only signed/unsigned numbers with ParseInt/ParseUint respectively

Test: build
Change-Id: If56b33c9c420237ff441779ba1dbebffd9dae8e3
This commit is contained in:
Tom Cherry
2018-10-05 14:37:13 -07:00
parent f89067ab97
commit 04e4afb9cf
+1 -1
View File
@@ -109,7 +109,7 @@ static bool ParseLastCommandFile(size_t* last_command_index) {
return false;
}
if (!android::base::ParseInt(lines[0], last_command_index)) {
if (!android::base::ParseUint(lines[0], last_command_index)) {
LOG(ERROR) << "Failed to parse integer in: " << lines[0];
return false;
}