From 04e4afb9cf71783b231d94deb0f7d504424e65e5 Mon Sep 17 00:00:00 2001 From: Tom Cherry Date: Fri, 5 Oct 2018 14:37:13 -0700 Subject: Use only signed/unsigned numbers with ParseInt/ParseUint respectively Test: build Change-Id: If56b33c9c420237ff441779ba1dbebffd9dae8e3 --- updater/blockimg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3