communication_ipc/0005-feat-for-embedded-fix-ipc-compile-error.patch
2024-04-22 17:10:57 +08:00

26 lines
1.1 KiB
Diff

From 418c6f30c6e8daf69cef14c1afd6924eb9634e6d Mon Sep 17 00:00:00 2001
From: s_c_c <shichuchao@huawei.com>
Date: Fri, 22 Mar 2024 11:19:48 +0800
Subject: [PATCH] feat for embedded fix ipc compile error
---
ipc/native/src/mock/source/binder_invoker.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ipc/native/src/mock/source/binder_invoker.cpp b/ipc/native/src/mock/source/binder_invoker.cpp
index 946940c..75e4010 100644
--- a/ipc/native/src/mock/source/binder_invoker.cpp
+++ b/ipc/native/src/mock/source/binder_invoker.cpp
@@ -746,7 +746,7 @@ int BinderInvoker::WaitForCompletion(MessageParcel *reply, int32_t *acquireResul
case BR_ACQUIRE_RESULT: {
int32_t result = input_.ReadInt32();
if (acquireResult != nullptr) {
- *acquireResult = result ? ERR_NONE : ERR_INVALID_OPERATION;
+ *acquireResult = result ? (int32_t)ERR_NONE : (int32_t)ERR_INVALID_OPERATION;
continueLoop = false;
}
break;
--
2.20.1 (Apple Git-117)