mirror of
https://gitee.com/openharmony/communication_ipc
synced 2024-11-27 01:51:13 +00:00
fix: rectify the warning
Signed-off-by: jason <jialinbo@huawei.com>
This commit is contained in:
parent
ca29e88422
commit
2e0d67eaf4
@ -346,7 +346,8 @@ bool DBinderBaseInvoker<T>::MoveTransData2Buffer(std::shared_ptr<T> sessionObjec
|
||||
sessionBuff->UpdateSendBuffer(sendSize);
|
||||
ssize_t writeCursor = sessionBuff->GetSendBufferWriteCursor();
|
||||
ssize_t readCursor = sessionBuff->GetSendBufferReadCursor();
|
||||
if (writeCursor < 0 || readCursor < 0 || sendSize > sessionBuff->GetSendBufferSize() - writeCursor) {
|
||||
if (writeCursor < 0 || readCursor < 0 || static_cast<uint32_t>(writeCursor) > sessionBuff->GetSendBufferSize() ||
|
||||
sendSize > sessionBuff->GetSendBufferSize() - static_cast<uint32_t>(writeCursor)) {
|
||||
sessionBuff->ReleaseSendBufferLock();
|
||||
ZLOGE(LOG_LABEL, "sender's data is large than idle buffer, writecursor:%{public}zd readcursor:%{public}zd,\
|
||||
sendSize:%{public}u bufferSize:%{public}u",
|
||||
|
Loading…
Reference in New Issue
Block a user