summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2018-10-08 05:01:57 +0200
committerandroid-build-team Robot <android-build-team-robot@google.com>2018-10-08 05:01:57 +0200
commitb12de2c07a768da021c0d4577fcff03ae942422a (patch)
treeb9d7b398741c974cae1ab3cc4a026b9a95a0d07c
parentSnap for 5053735 from b803131b1cb607f63f7efe25ac0d19351b8d5fb1 to qt-release (diff)
parentMerge "Use only signed/unsigned numbers with ParseInt/ParseUint respectively" am: 1a4d234daa am: 70f3689a70 (diff)
downloadandroid_bootable_recovery-b12de2c07a768da021c0d4577fcff03ae942422a.tar
android_bootable_recovery-b12de2c07a768da021c0d4577fcff03ae942422a.tar.gz
android_bootable_recovery-b12de2c07a768da021c0d4577fcff03ae942422a.tar.bz2
android_bootable_recovery-b12de2c07a768da021c0d4577fcff03ae942422a.tar.lz
android_bootable_recovery-b12de2c07a768da021c0d4577fcff03ae942422a.tar.xz
android_bootable_recovery-b12de2c07a768da021c0d4577fcff03ae942422a.tar.zst
android_bootable_recovery-b12de2c07a768da021c0d4577fcff03ae942422a.zip
-rw-r--r--updater/blockimg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/updater/blockimg.cpp b/updater/blockimg.cpp
index 838845673..47849a155 100644
--- a/updater/blockimg.cpp
+++ b/updater/blockimg.cpp
@@ -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;
}