summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/skiplist.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/db/skiplist.h b/db/skiplist.h
index 0481575..af85be6 100644
--- a/db/skiplist.h
+++ b/db/skiplist.h
@@ -105,7 +105,8 @@ class SkipList {
port::AtomicPointer max_height_; // Height of the entire list
inline int GetMaxHeight() const {
- return reinterpret_cast<intptr_t>(max_height_.NoBarrier_Load());
+ return static_cast<int>(
+ reinterpret_cast<intptr_t>(max_height_.NoBarrier_Load()));
}
// Read/written only by Insert().