From 30cbbfbf774b4795ac70d7ca333f37f402a9184d Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Fri, 7 Apr 2017 06:09:25 +0000 Subject: [PATCH] MDEV-12452 postfix - use C style cast, not reinterpret_cast to fix build on Win64 --- storage/rocksdb/ut0counter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/rocksdb/ut0counter.h b/storage/rocksdb/ut0counter.h index 97c92dc675bff..cfa474e7a99b1 100644 --- a/storage/rocksdb/ut0counter.h +++ b/storage/rocksdb/ut0counter.h @@ -78,7 +78,7 @@ struct thread_id_indexer_t : public generic_indexer_t { thread id is represented as a pointer, it may not work as effectively. */ size_t get_rnd_index() const { - return reinterpret_cast(get_curr_thread_id()); + return (size_t)get_curr_thread_id(); } };