fixed wrong cast

This commit is contained in:
Pauli Nieminen 2008-05-09 23:22:22 +00:00
parent a00b0c475d
commit 0aa365bb75

View File

@ -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) :