diff options
author | Matt Schatz <genius3000@g3k.solutions> | 2020-04-17 23:13:00 -0600 |
---|---|---|
committer | Matt Schatz <genius3000@g3k.solutions> | 2020-04-19 05:01:04 -0600 |
commit | 3ed1cc27b13fc8790b99f97c49cf8167236afe03 (patch) | |
tree | c874d610739c8e68617db1e5f02dfc8c1648adfa /include | |
parent | ac1b4ea7ae9859c342476cd326bdf31399dfa9e0 (diff) |
Switch User::usertype back to an unsigned int.
Leaving it up to the compiler to set the underlying type of the enum
can result in this being a signed int. This variable will not work
as intended as a 2 bit signed int.
This fixes an issue with the Windows build(s) where a server trying
to link would fail with "Protocol violation: Invalid source".
Diffstat (limited to 'include')
-rw-r--r-- | include/users.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/users.h b/include/users.h index 4d7994e8e..b3afed688 100644 --- a/include/users.h +++ b/include/users.h @@ -367,7 +367,7 @@ class CoreExport User : public Extensible unsigned int quitting:1; /** What type of user is this? */ - const UserType usertype:2; + const unsigned int usertype:2; /** Get client IP string from sockaddr, using static internal buffer * @return The IP string |