From cddcd7483a7c472598af098e759e5d309024f606 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 26 Dec 2021 20:31:39 +0300 Subject: DWORD -> uint32_t --- protocols/MinecraftDynmap/src/chat.cpp | 4 ++-- protocols/MinecraftDynmap/src/communication.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/MinecraftDynmap/src') diff --git a/protocols/MinecraftDynmap/src/chat.cpp b/protocols/MinecraftDynmap/src/chat.cpp index cbc4e5ad04..27a807c6f8 100644 --- a/protocols/MinecraftDynmap/src/chat.cpp +++ b/protocols/MinecraftDynmap/src/chat.cpp @@ -78,7 +78,7 @@ int MinecraftDynmapProto::OnChatEvent(WPARAM, LPARAM lParam) void MinecraftDynmapProto::AddChatContact(const char *name) { GCEVENT gce = { m_szModuleName, szRoomName, GC_EVENT_JOIN }; - gce.time = DWORD(time(0)); + gce.time = uint32_t(time(0)); gce.dwFlags = GCEF_UTF8 + GCEF_ADDTOLOG; gce.pszUID.a = gce.pszNick.a = name; gce.bIsMe = (m_nick == name); @@ -96,7 +96,7 @@ void MinecraftDynmapProto::DeleteChatContact(const char *name) GCEVENT gce = { m_szModuleName, szRoomName, GC_EVENT_PART }; gce.dwFlags = GCEF_UTF8 + GCEF_ADDTOLOG; gce.pszUID.a = gce.pszNick.a = name; - gce.time = DWORD(time(0)); + gce.time = uint32_t(time(0)); gce.bIsMe = (m_nick == name); Chat_Event(&gce); } diff --git a/protocols/MinecraftDynmap/src/communication.cpp b/protocols/MinecraftDynmap/src/communication.cpp index 2beb6020c6..eaa8771c50 100644 --- a/protocols/MinecraftDynmap/src/communication.cpp +++ b/protocols/MinecraftDynmap/src/communication.cpp @@ -356,7 +356,7 @@ void MinecraftDynmapProto::SignOnWorker(void*) m_iStatus = m_iDesiredStatus; ProtoBroadcastAck(0, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)old_status, m_iStatus); - setDword("LogonTS", (DWORD)time(0)); + setDword("LogonTS", (uint32_t)time(0)); ClearChat(); OnJoinChat(0, false); -- cgit v1.2.3