File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
modules/ts/include/opencv2/ts Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -10334,12 +10334,7 @@ class TypeWithoutFormatter<T, kConvertibleToInteger> {
10334
10334
// T is not an enum, printing it as an integer is the best we can do
10335
10335
// given that it has no user-defined printer.
10336
10336
static void PrintValue(const T& value, ::std::ostream* os) {
10337
- // MSVC warns about implicitly converting from double and float to int for
10338
- // possible loss of data, so we need to temporarily disable the
10339
- // warning.
10340
- GTEST_DISABLE_MSC_WARNINGS_PUSH_(4244)
10341
- const internal::BiggestInt kBigInt = value;
10342
- GTEST_DISABLE_MSC_WARNINGS_POP_()
10337
+ const internal::BiggestInt kBigInt = static_cast<internal::BiggestInt>(value);
10343
10338
*os << kBigInt;
10344
10339
}
10345
10340
};
You can’t perform that action at this time.
0 commit comments