summaryrefslogtreecommitdiffstats
path: root/recovery-refresh.cpp
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2016-04-18 20:30:55 +0200
committerChih-Hung Hsieh <chh@google.com>2016-04-18 21:29:30 +0200
commit54a2747ef305c10d07d8db393125dbcbb461c428 (patch)
treead6f90bea569c5f01bbf9485e356dcdb035d79c5 /recovery-refresh.cpp
parentMerge "Fix IWYU errors." (diff)
downloadandroid_bootable_recovery-54a2747ef305c10d07d8db393125dbcbb461c428.tar
android_bootable_recovery-54a2747ef305c10d07d8db393125dbcbb461c428.tar.gz
android_bootable_recovery-54a2747ef305c10d07d8db393125dbcbb461c428.tar.bz2
android_bootable_recovery-54a2747ef305c10d07d8db393125dbcbb461c428.tar.lz
android_bootable_recovery-54a2747ef305c10d07d8db393125dbcbb461c428.tar.xz
android_bootable_recovery-54a2747ef305c10d07d8db393125dbcbb461c428.tar.zst
android_bootable_recovery-54a2747ef305c10d07d8db393125dbcbb461c428.zip
Diffstat (limited to 'recovery-refresh.cpp')
-rw-r--r--recovery-refresh.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/recovery-refresh.cpp b/recovery-refresh.cpp
index 70adc70ee..333367eba 100644
--- a/recovery-refresh.cpp
+++ b/recovery-refresh.cpp
@@ -92,7 +92,7 @@ static ssize_t logrotate(
if (!isdigit(number.data()[0])) {
name += ".1";
} else {
- unsigned long long i = std::stoull(number);
+ auto i = std::stoull(number);
name = sub + "." + std::to_string(i + 1);
}
}