Skip to content

Commit a911e38

Browse files
committed
Fix
1 parent 71a6986 commit a911e38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tensorflow/lite/micro/kernels/quantization_util_test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ namespace {
2323
template <class FloatIn, class IntOut>
2424
void RunSafeCastTests() {
2525
const IntOut imax = std::numeric_limits<IntOut>::max();
26-
EXPECT_GT(imax, 0);
26+
EXPECT_GT(imax, static_cast<IntOut>(0));
2727
const IntOut imin = std::numeric_limits<IntOut>::min();
2828
const bool s = std::numeric_limits<IntOut>::is_signed;
2929
if (s) {
30-
EXPECT_LT(static_cast<IntOut>(imin), 0);
30+
EXPECT_LT(static_cast<IntOut>(imin), static_cast<IntOut>(0));
3131
} else {
3232
EXPECT_EQ(static_cast<IntOut>(0), imin);
3333
}

0 commit comments

Comments
 (0)