mirror of
https://gitee.com/openharmony/developtools_hdc
synced 2025-02-11 21:55:40 +00:00
feat:混用有符号数无符数告警清理
Signed-off-by: maliang <maliang87@huawei.com>
This commit is contained in:
parent
8d1b87ce2a
commit
3c917e1afe
@ -287,8 +287,13 @@ void HdcChannelBase::PushAsyncMessage(const uint32_t channelId, const uint8_t me
|
||||
void HdcChannelBase::SendChannelWithCmd(HChannel hChannel, const uint16_t commandFlag, uint8_t *bufPtr, const int size)
|
||||
{
|
||||
StartTraceScope("HdcChannelBase::SendChannelWithCmd");
|
||||
if (size < 0) {
|
||||
WRITE_LOG(LOG_WARN, "SendChannelWithCmd size %d", size);
|
||||
return;
|
||||
}
|
||||
auto data = new uint8_t[size + sizeof(commandFlag)]();
|
||||
if (!data) {
|
||||
WRITE_LOG(LOG_WARN, "malloc failed");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -301,10 +301,10 @@ bool HdcTransferBase::ProcressFileIO(uv_fs_t *req, CtxFile *context, HdcTransfer
|
||||
uv_strerror_r((int)req->result, buf, bufSize);
|
||||
WRITE_LOG(LOG_DEBUG, "OnFileIO error: %s", buf);
|
||||
context->closeNotify = true;
|
||||
context->lastErrno = abs(req->result);
|
||||
context->lastErrno = static_cast<uint32_t>(abs(req->result));
|
||||
return true;
|
||||
}
|
||||
context->indexIO += req->result;
|
||||
context->indexIO += static_cast<uint64_t>(req->result);
|
||||
if (req->fs_type == UV_FS_READ) {
|
||||
return ProcressFileIORead(req, context, thisClass);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user