mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +00:00
Fix serialization of std::time_t by casting to u64 first (#8353)
Fixes #8332
This commit is contained in:
parent
77961aa73d
commit
3b25b807f3
4 changed files with 4 additions and 22 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue