mirror of
https://gitee.com/openharmony/communication_ipc
synced 2024-12-02 21:28:28 +00:00
fix: rectify the type_cast
Signed-off-by: jialinbo <jialinbo@huawei.com>
This commit is contained in:
parent
fbe002ab85
commit
c74e6fd4fc
@ -158,7 +158,7 @@ private:
|
||||
|
||||
void Transaction(binder_transaction_data_secctx& trSecctx);
|
||||
|
||||
void OnTransaction(int32_t cmd, int32_t &error);
|
||||
void OnTransaction(uint32_t cmd, int32_t &error);
|
||||
|
||||
void OnSpawnThread();
|
||||
|
||||
|
@ -743,13 +743,13 @@ void BinderInvoker::OnSpawnThread()
|
||||
}
|
||||
}
|
||||
|
||||
void BinderInvoker::OnTransaction(int32_t cmd, int32_t &error)
|
||||
void BinderInvoker::OnTransaction(uint32_t cmd, int32_t &error)
|
||||
{
|
||||
binder_transaction_data_secctx trSecctx = {
|
||||
.secctx = 0,
|
||||
};
|
||||
const uint8_t *buffer = nullptr;
|
||||
bool isSecctx = (cmd == static_cast<int32_t>(BR_TRANSACTION_SEC_CTX));
|
||||
bool isSecctx = (cmd == static_cast<uint32_t>(BR_TRANSACTION_SEC_CTX));
|
||||
uint32_t bufferSize = isSecctx ? sizeof(binder_transaction_data_secctx) : sizeof(binder_transaction_data);
|
||||
|
||||
buffer = input_.ReadBuffer(bufferSize, false);
|
||||
|
Loading…
Reference in New Issue
Block a user