We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71a6986 commit a911e38Copy full SHA for a911e38
tensorflow/lite/micro/kernels/quantization_util_test.cc
@@ -23,11 +23,11 @@ namespace {
23
template <class FloatIn, class IntOut>
24
void RunSafeCastTests() {
25
const IntOut imax = std::numeric_limits<IntOut>::max();
26
- EXPECT_GT(imax, 0);
+ EXPECT_GT(imax, static_cast<IntOut>(0));
27
const IntOut imin = std::numeric_limits<IntOut>::min();
28
const bool s = std::numeric_limits<IntOut>::is_signed;
29
if (s) {
30
- EXPECT_LT(static_cast<IntOut>(imin), 0);
+ EXPECT_LT(static_cast<IntOut>(imin), static_cast<IntOut>(0));
31
} else {
32
EXPECT_EQ(static_cast<IntOut>(0), imin);
33
}
0 commit comments