commit | 33d54dad1a8f108303d32f405e72b1e23d26a8b7 | [log] [tgz] |
---|---|---|
author | Kelvin Zhang <zhangkelvin@google.com> | Wed Nov 29 21:43:22 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Nov 29 21:43:22 2023 +0000 |
tree | 0cba857f1cf20f4cc528720ab1c3025f469f2403 | |
parent | 80b223a90fc264d193b917febfc65b20d2e532ad [diff] | |
parent | f9993cad5b043571aabc934c351b8c5b6e53b025 [diff] |
Convert CowOperationType into strongly typed enums am: c6be9171dc am: f9993cad5b Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/2850925 Change-Id: I4a6fb59fc3691aeda573f84f6f353a3e578ca5ce Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/common/cow_operation_convert.h b/common/cow_operation_convert.h index a260a4a..5e29fc2 100644 --- a/common/cow_operation_convert.h +++ b/common/cow_operation_convert.h
@@ -26,8 +26,8 @@ namespace chromeos_update_engine { struct CowOperation { enum Type { - CowCopy = android::snapshot::kCowCopyOp, - CowReplace = android::snapshot::kCowReplaceOp, + CowCopy = static_cast<int>(android::snapshot::kCowCopyOp), + CowReplace = static_cast<int>(android::snapshot::kCowReplaceOp), }; Type op{}; uint64_t src_block{};