Fix PR#24267. use numeric_limits::max instead of ~0 for 'all ones', since that might...
authorMarshall Clow <mclow.lists@gmail.com>
Thu, 30 Jul 2015 18:26:34 +0000 (18:26 +0000)
committerMarshall Clow <mclow.lists@gmail.com>
Thu, 30 Jul 2015 18:26:34 +0000 (18:26 +0000)
commita6438ca12a72efe147e74b6ea4698f696f52b969
tree141dc1a501a9b4be362358b68e94df20195561ab
parente96b85166b6e7a7bb5256a0957ee83ffa132a2dc
Fix PR#24267. use numeric_limits::max instead of ~0 for 'all ones', since that might give wrong answers on a 1's complement machine.

llvm-svn: 243674
libcxx/include/algorithm