Skip to content

Commit 4dd3960

Browse files
committed
fixed:linux build error
1 parent 14bd379 commit 4dd3960

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

XEngine_Source/MQCore_ProtocolModule/ProtocolModule_Packet/ProtocolModule_Packet.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ XHANDLE CProtocolModule_Packet::ProtocolModule_Packet_UNReadCreate(XENGINE_PROTO
458458
Protocol_dwErrorCode = ERROR_MQ_MODULE_PROTOCOL_MALLOC;
459459
return FALSE;
460460
}
461-
memset(pSt_UNRead, '\0', sizeof(PROTOCOL_PACKETUNREAD));
461+
memset(&pSt_UNRead->st_ProtocolHdr, '\0', sizeof(PROTOCOL_PACKETUNREAD));
462462

463463
pSt_UNRead->nType = enPayType;
464464
if (pSt_UNRead->nType == ENUM_XENGINE_PROTOCOLHDR_PAYLOAD_TYPE_BIN)
@@ -516,8 +516,8 @@ BOOL CProtocolModule_Packet::ProtocolModule_Packet_UNReadInsert(XHANDLE xhToken,
516516
st_JsonObject["tszQueueLeftTime"] = (*pppSt_DBMessage)[i]->tszQueueLeftTime;
517517
st_JsonObject["tszQueuePublishTime"] = (*pppSt_DBMessage)[i]->tszQueuePublishTime;
518518
st_JsonObject["tszQueueCreateTime"] = (*pppSt_DBMessage)[i]->tszQueueCreateTime;
519-
st_JsonObject["nQueueSerial"] = (*pppSt_DBMessage)[i]->nQueueSerial;
520-
st_JsonObject["nQueueGetTime"] = (*pppSt_DBMessage)[i]->nQueueGetTime;
519+
st_JsonObject["nQueueSerial"] = (Json::Value::Int64)(*pppSt_DBMessage)[i]->nQueueSerial;
520+
st_JsonObject["nQueueGetTime"] = (Json::Value::Int64)(*pppSt_DBMessage)[i]->nQueueGetTime;
521521
st_JsonObject["nMsgLen"] = (*pppSt_DBMessage)[i]->nMsgLen;
522522
st_JsonObject["byMsgType"] = (*pppSt_DBMessage)[i]->byMsgType;
523523
st_JsonObject["tszMsgBuffer"] = (*pppSt_DBMessage)[i]->tszMsgBuffer;

0 commit comments

Comments
 (0)