diff options
author | Zachary Michaels <mikezackles@gmail.com> | 2014-08-20 11:57:29 -0400 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2014-09-15 22:38:46 +0200 |
commit | 9db881864db916310c11270c1939db700689c9a3 (patch) | |
tree | 742b1cd07dde7581f9a3090698da29152cecf3ee /src/p2p/p2p_protocol_defs.h | |
parent | Use LTO by default (diff) | |
download | monero-9db881864db916310c11270c1939db700689c9a3.tar.xz |
Fix time_t serialization issue
On 32-bit MinGW-w64, time_t is int32_t. The existing code was serializing
time_t directly and implicitly assuming that time_t is int64_t. This commit
formalizes that assumption by serializing int64_t directly and casting to
time_t where appropriate.
Thanks go to greatwolf for reporting this issue.
monero-project/bitmonero#88
Diffstat (limited to '')
-rw-r--r-- | src/p2p/p2p_protocol_defs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/p2p/p2p_protocol_defs.h b/src/p2p/p2p_protocol_defs.h index a14d00dcd..44b8c5b50 100644 --- a/src/p2p/p2p_protocol_defs.h +++ b/src/p2p/p2p_protocol_defs.h @@ -53,7 +53,7 @@ namespace nodetool { net_address adr; peerid_type id; - time_t last_seen; + int64_t last_seen; }; struct connection_entry |