Skip to content

Commit 2ad612f

Browse files
committed
removed MSVC warning suppression
1 parent cf86f88 commit 2ad612f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

modules/ts/include/opencv2/ts/ts_gtest.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10334,12 +10334,7 @@ class TypeWithoutFormatter<T, kConvertibleToInteger> {
1033410334
// T is not an enum, printing it as an integer is the best we can do
1033510335
// given that it has no user-defined printer.
1033610336
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);
1034310338
*os << kBigInt;
1034410339
}
1034510340
};

0 commit comments

Comments
 (0)