瀏覽代碼

Fix signed/unsigned mismatch on VC++ builds

main
Bruce Dawson 8 年之前
父節點
當前提交
6b18316d01
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      db/skiplist_test.cc

+ 1
- 1
db/skiplist_test.cc 查看文件

@ -250,7 +250,7 @@ class ConcurrentTest {
// Note that generation 0 is never inserted, so it is ok if // Note that generation 0 is never inserted, so it is ok if
// <*,0,*> is missing. // <*,0,*> is missing.
ASSERT_TRUE((gen(pos) == 0) || ASSERT_TRUE((gen(pos) == 0) ||
(gen(pos) > initial_state.Get(key(pos)))
(gen(pos) > static_cast<Key>(initial_state.Get(key(pos))))
) << "key: " << key(pos) ) << "key: " << key(pos)
<< "; gen: " << gen(pos) << "; gen: " << gen(pos)
<< "; initgen: " << "; initgen: "

Loading…
取消
儲存