[libcxx-commits] [PATCH] D130963: [libc++] Fix warning C4244 in`std/numerics/rand/rand.dist/rand.dist.samp/rand.dist.samp.discrete/eval.pass.cpp`

Igor Zhukov via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Aug 1 22:46:20 PDT 2022


fsb4000 created this revision.
fsb4000 added a project: libc++.
Herald added a project: All.
fsb4000 requested review of this revision.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

frederick-vs-ja  noticed that https://github.com/microsoft/STL/pull/2976#issuecomment-1201926893 while we are working on updating LLVM submodule for MS STL

  C:\Dev\STL\llvm-project\libcxx\test\std\numerics\rand\rand.dist\rand.dist.samp\rand.dist.samp.discrete\eval.pass.cpp(33): error C2220: the following warning is treated as an error
  C:\Dev\STL\llvm-project\libcxx\test\std\numerics\rand\rand.dist\rand.dist.samp\rand.dist.samp.discrete\eval.pass.cpp(287): note: see reference to function template instantiation 'void tests<__int64>(void)' being compiled
  C:\Dev\STL\llvm-project\libcxx\test\std\numerics\rand\rand.dist\rand.dist.samp\rand.dist.samp.discrete\eval.pass.cpp(33): warning C4244: 'argument': conversion from '__int64' to 'const unsigned int', possible loss of data
  C:\Dev\STL\llvm-project\libcxx\test\std\numerics\rand\rand.dist\rand.dist.samp\rand.dist.samp.discrete\eval.pass.cpp(38): warning C4244: 'argument': conversion from '__int64' to 'const unsigned int', possible loss of data
  C:\Dev\STL\llvm-project\libcxx\test\std\numerics\rand\rand.dist\rand.dist.samp\rand.dist.samp.discrete\eval.pass.cpp(51): warning C4244: 'argument': conversion from '__int64' to 'const unsigned int', possible loss of data
  C:\Dev\STL\llvm-project\libcxx\test\std\numerics\rand\rand.dist\rand.dist.samp\rand.dist.samp.discrete\eval.pass.cpp(56): warning C4244: 'argument': conversion from '__int64' to 'const unsigned int', possible loss of data
  C:\Dev\STL\llvm-project\libcxx\test\std\numerics\rand\rand.dist\rand.dist.samp\rand.dist.samp.discrete\eval.pass.cpp(69): warning C4244: 'argument': conversion from '__int64' to 'const unsigned int', possible loss of data
  C:\Dev\STL\llvm-project\libcxx\test\std\numerics\rand\rand.dist\rand.dist.samp\rand.dist.samp.discrete\eval.pass.cpp(74): warning C4244: 'argument': conversion from '__int64' to 'const unsigned int', possible loss of data
  C:\Dev\STL\llvm-project\libcxx\test\std\numerics\rand\rand.dist\rand.dist.samp\rand.dist.samp.discrete\eval.pass.cpp(87): warning C4244: 'argument': conversion from '__int64' to 'const unsigned int', possible loss of data
  C:\Dev\STL\llvm-project\libcxx\test\std\numerics\rand\rand.dist\rand.dist.samp\rand.dist.samp.discrete\eval.pass.cpp(92): warning C4244: 'argument': conversion from '__int64' to 'const unsigned int', possible loss of data
  C:\Dev\STL\llvm-project\libcxx\test\std\numerics\rand\rand.dist\rand.dist.samp\rand.dist.samp.discrete\eval.pass.cpp(105): warning C4244: 'argument': conversion from '__int64' to 'const unsigned int', possible loss of data
  C:\Dev\STL\llvm-project\libcxx\test\std\numerics\rand\rand.dist\rand.dist.samp\rand.dist.samp.discrete\eval.pass.cpp(110): warning C4244: 'argument': conversion from '__int64' to 'const unsigned int', possible loss of data
  C:\Dev\STL\llvm-project\libcxx\test\std\numerics\rand\rand.dist\rand.dist.samp\rand.dist.samp.discrete\eval.pass.cpp(123): warning C4244: 'argument': conversion from '__int64' to 'const unsigned int', possible loss of data
  C:\Dev\STL\llvm-project\libcxx\test\std\numerics\rand\rand.dist\rand.dist.samp\rand.dist.samp.discrete\eval.pass.cpp(128): warning C4244: 'argument': conversion from '__int64' to 'const unsigned int', possible loss of data
  C:\Dev\STL\llvm-project\libcxx\test\std\numerics\rand\rand.dist\rand.dist.samp\rand.dist.samp.discrete\eval.pass.cpp(141): warning C4244: 'argument': conversion from '__int64' to 'const unsigned int', possible loss of data
  C:\Dev\STL\llvm-project\libcxx\test\std\numerics\rand\rand.dist\rand.dist.samp\rand.dist.samp.discrete\eval.pass.cpp(146): warning C4244: 'argument': conversion from '__int64' to 'const unsigned int', possible loss of data
  C:\Dev\STL\llvm-project\libcxx\test\std\numerics\rand\rand.dist\rand.dist.samp\rand.dist.samp.discrete\eval.pass.cpp(162): warning C4244: 'argument': conversion from '__int64' to 'const unsigned int', possible loss of data
  C:\Dev\STL\llvm-project\libcxx\test\std\numerics\rand\rand.dist\rand.dist.samp\rand.dist.samp.discrete\eval.pass.cpp(167): warning C4244: 'argument': conversion from '__int64' to 'const unsigned int', possible loss of data
  C:\Dev\STL\llvm-project\libcxx\test\std\numerics\rand\rand.dist\rand.dist.samp\rand.dist.samp.discrete\eval.pass.cpp(183): warning C4244: 'argument': conversion from '__int64' to 'const unsigned int', possible loss of data
  C:\Dev\STL\llvm-project\libcxx\test\std\numerics\rand\rand.dist\rand.dist.samp\rand.dist.samp.discrete\eval.pass.cpp(188): warning C4244: 'argument': conversion from '__int64' to 'const unsigned int', possible loss of data
  C:\Dev\STL\llvm-project\libcxx\test\std\numerics\rand\rand.dist\rand.dist.samp\rand.dist.samp.discrete\eval.pass.cpp(204): warning C4244: 'argument': conversion from '__int64' to 'const unsigned int', possible loss of data
  C:\Dev\STL\llvm-project\libcxx\test\std\numerics\rand\rand.dist\rand.dist.samp\rand.dist.samp.discrete\eval.pass.cpp(209): warning C4244: 'argument': conversion from '__int64' to 'const unsigned int', possible loss of data
  C:\Dev\STL\llvm-project\libcxx\test\std\numerics\rand\rand.dist\rand.dist.samp\rand.dist.samp.discrete\eval.pass.cpp(225): warning C4244: 'argument': conversion from '__int64' to 'const unsigned int', possible loss of data
  C:\Dev\STL\llvm-project\libcxx\test\std\numerics\rand\rand.dist\rand.dist.samp\rand.dist.samp.discrete\eval.pass.cpp(230): warning C4244: 'argument': conversion from '__int64' to 'const unsigned int', possible loss of data
  C:\Dev\STL\llvm-project\libcxx\test\std\numerics\rand\rand.dist\rand.dist.samp\rand.dist.samp.discrete\eval.pass.cpp(246): warning C4244: 'argument': conversion from '__int64' to 'const unsigned int', possible loss of data
  C:\Dev\STL\llvm-project\libcxx\test\std\numerics\rand\rand.dist\rand.dist.samp\rand.dist.samp.discrete\eval.pass.cpp(251): warning C4244: 'argument': conversion from '__int64' to 'const unsigned int', possible loss of data
  C:\Dev\STL\llvm-project\libcxx\test\std\numerics\rand\rand.dist\rand.dist.samp\rand.dist.samp.discrete\eval.pass.cpp(267): warning C4244: 'argument': conversion from '__int64' to 'const unsigned int', possible loss of data
  C:\Dev\STL\llvm-project\libcxx\test\std\numerics\rand\rand.dist\rand.dist.samp\rand.dist.samp.discrete\eval.pass.cpp(272): warning C4244: 'argument': conversion from '__int64' to 'const unsigned int', possible loss of data
  ....


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D130963

Files:
  libcxx/test/std/numerics/rand/rand.dist/rand.dist.samp/rand.dist.samp.discrete/eval.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130963.449186.patch
Type: text/x-patch
Size: 8528 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220802/a1422a8a/attachment-0001.bin>


More information about the libcxx-commits mailing list