Compare signed and unsigned integers in serde_test.cc
Created by: wangkuiyi
/paddle/paddle/fluid/operators/detail/serde_test.cc: In function ‘void RunSerdeTestSelectedRows(paddle::platform::Place)’:
/paddle/paddle/fluid/operators/detail/serde_test.cc:110:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < rows2->size(); ++i) {
^
In file included from /paddle/paddle/fluid/operators/detail/serde_test.cc:20:0:
/paddle/build/third_party/install/gtest/include/gtest/gtest.h: In instantiation of ‘testing::AssertionResult testing::internal::CmpHelperGT(const char*, const char*, const T1&, const T2&) [with T1 = long unsigned int; T2 = int]’:
/paddle/paddle/fluid/operators/detail/serde_test.cc:54:3: required from here
/paddle/build/third_party/install/gtest/include/gtest/gtest.h:1530:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
GTEST_IMPL_CMP_HELPER_(GT, >);
^
/paddle/build/third_party/install/gtest/include/gtest/gtest.h:1510:12: note: in definition of macro ‘GTEST_IMPL_CMP_HELPER_’
if (val1 op val2) {\
^