mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 10:03:27 +00:00
fixed wrong cast
This commit is contained in:
parent
a00b0c475d
commit
0aa365bb75
@ -100,7 +100,7 @@ unsigned int waiting_threads[NUM_SHARDS];
|
||||
size_t min_threads = 0;
|
||||
size_t max_threads = 0;
|
||||
|
||||
size_t get_shard(TCPsocket sock) { return static_cast<uintptr_t>(sock)%NUM_SHARDS; }
|
||||
size_t get_shard(TCPsocket sock) { return reinterpret_cast<uintptr_t>(sock)%NUM_SHARDS; }
|
||||
|
||||
struct buffer {
|
||||
explicit buffer(TCPsocket sock) :
|
||||
|
Loading…
x
Reference in New Issue
Block a user