Commit 11fa45f8 authored by nanahira's avatar nanahira

fixwarning

parent 70637886
...@@ -263,7 +263,7 @@ void DuelClient::HandleSTOCPacketLan(char* data, unsigned int len) { ...@@ -263,7 +263,7 @@ void DuelClient::HandleSTOCPacketLan(char* data, unsigned int len) {
char* pdata = data; char* pdata = data;
unsigned char pktType = BufferIO::ReadUInt8(pdata); unsigned char pktType = BufferIO::ReadUInt8(pdata);
#ifdef YGOPRO_MESSAGE_DEBUG #ifdef YGOPRO_MESSAGE_DEBUG
printf("STOC: %d Length: %ld\n", pktType, len); printf("STOC: %d Length: %d\n", pktType, len);
#endif #endif
switch(pktType) { switch(pktType) {
case STOC_GAME_MSG: { case STOC_GAME_MSG: {
...@@ -988,7 +988,7 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) { ...@@ -988,7 +988,7 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
wchar_t textBuffer[256]; wchar_t textBuffer[256];
mainGame->dInfo.curMsg = BufferIO::ReadUInt8(pbuf); mainGame->dInfo.curMsg = BufferIO::ReadUInt8(pbuf);
#ifdef YGOPRO_MESSAGE_DEBUG #ifdef YGOPRO_MESSAGE_DEBUG
printf("MSG: %d Length: %ld\n", mainGame->dInfo.curMsg, len); printf("MSG: %d Length: %d\n", mainGame->dInfo.curMsg, len);
#endif #endif
if(mainGame->dInfo.curMsg != MSG_RETRY) { if(mainGame->dInfo.curMsg != MSG_RETRY) {
memcpy(last_successful_msg, msg, len); memcpy(last_successful_msg, msg, len);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment