1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-14 00:55:20 +02:00

Fix serialization of std::time_t by casting to u64 first (#8353)

Fixes #8332
This commit is contained in:
rubenwardy
2019-03-10 18:53:02 +00:00
committed by GitHub
parent 77961aa73d
commit 3b25b807f3
4 changed files with 4 additions and 22 deletions

View File

@@ -19,7 +19,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#pragma once
#include <ctime>
#include "util/pointer.h"
#include "util/numeric.h"
#include "networkprotocol.h"
@@ -88,9 +87,6 @@ public:
NetworkPacket &operator>>(u64 &dst);
NetworkPacket &operator<<(u64 src);
NetworkPacket &operator>>(std::time_t &dst);
NetworkPacket &operator<<(std::time_t src);
NetworkPacket &operator>>(float &dst);
NetworkPacket &operator<<(float src);