diff options
| author | 2021-05-30 20:37:54 +0100 | |
|---|---|---|
| committer | 2021-05-30 20:37:54 +0100 | |
| commit | 02340285c564a7e82105137192d46d554a6fce3a (patch) | |
| tree | 696d1a6249841de62c3fed70310c2a347fc66732 /src/serializable.cpp | |
| parent | Add a workaround for a bug in GitHub Actions. (diff) | |
Added -Wshorten-64-to-32 and fixed all warnings.
Diffstat (limited to 'src/serializable.cpp')
| -rw-r--r-- | src/serializable.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/serializable.cpp b/src/serializable.cpp index f2c62c4dc..f6ff634f9 100644 --- a/src/serializable.cpp +++ b/src/serializable.cpp @@ -128,7 +128,7 @@ bool User::Deserialize(Serializable::Data& data) if (!Extensible::Deserialize(exts)) return false; - long client_port; + int client_port; std::string client_addr; std::string user_modes; std::string user_oper; @@ -224,7 +224,7 @@ bool LocalUser::Deserialize(Serializable::Data& data) bool user_exempt; bool user_lastping; - long server_port; + int server_port; std::string server_addr; // Apply the members which can be applied directly. |
