Merge "Use only signed/unsigned numbers with ParseInt/ParseUint respectively"
This commit is contained in:
@@ -109,7 +109,7 @@ static bool ParseLastCommandFile(size_t* last_command_index) {
|
|||||||
return false;
|
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];
|
LOG(ERROR) << "Failed to parse integer in: " << lines[0];
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user