summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2018-10-07 19:57:55 +0200
committerandroid-build-merger <android-build-merger@google.com>2018-10-07 19:57:55 +0200
commit10db3854bb1ea79f1a165b178b78f380e93a944b (patch)
treeb9d7b398741c974cae1ab3cc4a026b9a95a0d07c
parentMerge changes from topic "am-88276146-0d74-467c-8b81-8d471d84ce66-nyc-mr2-dev" into oc-dev am: 7f1b33e94c am: fc311bb706 am: 31e8b44c9e am: ad81bd64c2 (diff)
parentMerge "Use only signed/unsigned numbers with ParseInt/ParseUint respectively" am: 1a4d234daa (diff)
downloadandroid_bootable_recovery-10db3854bb1ea79f1a165b178b78f380e93a944b.tar
android_bootable_recovery-10db3854bb1ea79f1a165b178b78f380e93a944b.tar.gz
android_bootable_recovery-10db3854bb1ea79f1a165b178b78f380e93a944b.tar.bz2
android_bootable_recovery-10db3854bb1ea79f1a165b178b78f380e93a944b.tar.lz
android_bootable_recovery-10db3854bb1ea79f1a165b178b78f380e93a944b.tar.xz
android_bootable_recovery-10db3854bb1ea79f1a165b178b78f380e93a944b.tar.zst
android_bootable_recovery-10db3854bb1ea79f1a165b178b78f380e93a944b.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;
}