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
parent bf4deb0ce6
commit d8ece2e3e9
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 @@ class NetworkPacket
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);