Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 04e4afb9 authored by Tom Cherry's avatar Tom Cherry
Browse files

Use only signed/unsigned numbers with ParseInt/ParseUint respectively

Test: build
Change-Id: If56b33c9c420237ff441779ba1dbebffd9dae8e3
parent f89067ab
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
  }