提交 0072ef50 编写于 作者: L liaogang

Fix compile check type failed in linux

上级 23e47bb6
...@@ -321,7 +321,7 @@ TEST(PyDataProvider2, input_order) { ...@@ -321,7 +321,7 @@ TEST(PyDataProvider2, input_order) {
if (!realBatchSize) { if (!realBatchSize) {
break; break;
} }
ASSERT_EQ(batch.getStreams().size(), 2); ASSERT_EQ(batch.getStreams().size(), (size_t)2);
for (size_t i = 0; i < realBatchSize; ++i) { for (size_t i = 0; i < realBatchSize; ++i) {
ASSERT_EQ(batch.getStream(0).ids->getData()[i], 0); ASSERT_EQ(batch.getStream(0).ids->getData()[i], 0);
ASSERT_EQ(batch.getStream(1).ids->getData()[i], 1); ASSERT_EQ(batch.getStream(1).ids->getData()[i], 1);
......
...@@ -32,7 +32,7 @@ void testNormalImpl(size_t thread_num, ...@@ -32,7 +32,7 @@ void testNormalImpl(size_t thread_num,
std::vector<std::thread> threads; std::vector<std::thread> threads;
threads.reserve(thread_num); threads.reserve(thread_num);
for (int32_t i = 0; i < thread_num; ++i) { for (size_t i = 0; i < thread_num; ++i) {
threads.emplace_back([&thread_num, &mutex, threads.emplace_back([&thread_num, &mutex,
&tids, &barrier, &callback]{ &tids, &barrier, &callback]{
callback(thread_num, mutex, tids, barrier); callback(thread_num, mutex, tids, barrier);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册