]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Merge pull request #15525 from wjwithagen/wip-wjw-clang-testosdmap
authorSage Weil <sage@newdream.net>
Wed, 7 Jun 2017 20:59:54 +0000 (15:59 -0500)
committerGitHub <noreply@github.com>
Wed, 7 Jun 2017 20:59:54 +0000 (15:59 -0500)
test: osd/TestOSDMap.cc: fix Clang complain about promotion

Reviewed-by: Kefu Chai <kchai@redhat.com>
1  2 
src/test/osd/TestOSDMap.cc

index 94453551297181fd3c3be34c2bbf0da7bc56fbb1,4149ba5f5507bbb980aea73bb03cb8ebc9607af7..300a38528c653d221dce8f7aef2c190be8d46ccd
@@@ -439,9 -439,9 +439,9 @@@ TEST(PGTempMap, basic
  {
    PGTempMap m;
    pg_t a(1,1);
 -  for (unsigned i=3; i<1000; ++i) {
 +  for (auto i=3; i<1000; ++i) {
      pg_t x(i, 1);
-     m.set(x, {i});
+     m.set(x, {static_cast<int>(i)});
    }
    pg_t b(2,1);
    m.set(a, {1, 2});