mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 16:14:12 +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 min_threads = 0;
|
||||||
size_t max_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 {
|
struct buffer {
|
||||||
explicit buffer(TCPsocket sock) :
|
explicit buffer(TCPsocket sock) :
|
||||||
|
Loading…
x
Reference in New Issue
Block a user