commit | 04bdbf19f5ecdbade9f7f4ca757240b6923e14a5 | [log] [tgz] |
---|---|---|
author | Kelvin Zhang <zhangkelvin@google.com> | Wed Nov 29 22:16:27 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Nov 29 22:16:27 2023 +0000 |
tree | 0cba857f1cf20f4cc528720ab1c3025f469f2403 | |
parent | 73e5ad7924a17f76b06d92c80a0d6b3b20f7dd2f [diff] | |
parent | 33d54dad1a8f108303d32f405e72b1e23d26a8b7 [diff] |
Convert CowOperationType into strongly typed enums am: c6be9171dc am: f9993cad5b am: 33d54dad1a Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/2850925 Change-Id: Ifa268be23108cf254ce0a998f8a9ab675252d6cb 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{};