[libcxx] [test] Fix MSVC warning C4244 "conversion from 'X' to 'Y', possible loss...
authorStephan T. Lavavej <stl@exchange.microsoft.com>
Thu, 8 Dec 2016 21:38:01 +0000 (21:38 +0000)
committerStephan T. Lavavej <stl@exchange.microsoft.com>
Thu, 8 Dec 2016 21:38:01 +0000 (21:38 +0000)
commitc255fa5e9325b8c5b19f7ba3e04f434f447e1d94
tree261660cc100525c62ea394b153971160a96adcc3
parentd7dc18e26dd7890ede5690d31a5b608ae43ea1ce
[libcxx] [test] Fix MSVC warning C4244 "conversion from 'X' to 'Y', possible loss of data", part 2/7.

These tests for some guy's transparent operator functors were needlessly truncating their
double results to int. Preserving the doubleness makes compilers happier. I'm following
existing practice by adding an "// exact in binary" comment when the result isn't a whole number.
(The changes from 6 to 6.0 and so forth are stylistic, not critical.)

Fixes D27539.

llvm-svn: 289106
libcxx/test/std/utilities/function.objects/arithmetic.operations/divides.pass.cpp
libcxx/test/std/utilities/function.objects/arithmetic.operations/minus.pass.cpp
libcxx/test/std/utilities/function.objects/arithmetic.operations/multiplies.pass.cpp
libcxx/test/std/utilities/function.objects/arithmetic.operations/negate.pass.cpp
libcxx/test/std/utilities/function.objects/arithmetic.operations/plus.pass.cpp