diff options
| author | Anton <anton@picapica> | 2019-06-10 22:28:45 +0400 |
|---|---|---|
| committer | Anton <anton@picapica> | 2019-06-10 22:28:45 +0400 |
| commit | f60392515d0b3f1fb9e4f536a311b0d0e1bd11ff (patch) | |
| tree | 0cc17f76e7abb334739247a3698c39cd1c4c834d /pica-client/skynet.cpp | |
| parent | ff31d3e26aeccae16e1373157d87230381a41847 (diff) | |
| download | pica-pica-f60392515d0b3f1fb9e4f536a311b0d0e1bd11ff.tar.gz pica-pica-f60392515d0b3f1fb9e4f536a311b0d0e1bd11ff.zip | |
pica-client: fixes for compatibility with Qt5 on OS X/C++11/clang
Diffstat (limited to 'pica-client/skynet.cpp')
| -rw-r--r-- | pica-client/skynet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pica-client/skynet.cpp b/pica-client/skynet.cpp index 89386d0..d56dfbb 100644 --- a/pica-client/skynet.cpp +++ b/pica-client/skynet.cpp @@ -974,7 +974,7 @@ void SkyNet::c2c_closed_cb(const unsigned char *peer_id, int reason) void SkyNet::nodelist_cb(int type, void *addr_bin, const char *addr_str, unsigned int port) { - Nodes::NodeRecord nr = {addr_str, port}; + Nodes::NodeRecord nr = {addr_str, static_cast<quint16>(port)}; skynet->nodes.Add(nr); } |
