Skip to content

Commit 0072ef5

Browse files
committed
Fix compile check type failed in linux
1 parent 23e47bb commit 0072ef5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

paddle/gserver/tests/test_PyDataProvider2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ TEST(PyDataProvider2, input_order) {
321321
if (!realBatchSize) {
322322
break;
323323
}
324-
ASSERT_EQ(batch.getStreams().size(), 2);
324+
ASSERT_EQ(batch.getStreams().size(), (size_t)2);
325325
for (size_t i = 0; i < realBatchSize; ++i) {
326326
ASSERT_EQ(batch.getStream(0).ids->getData()[i], 0);
327327
ASSERT_EQ(batch.getStream(1).ids->getData()[i], 1);

paddle/utils/tests/test_ThreadBarrier.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void testNormalImpl(size_t thread_num,
3232

3333
std::vector<std::thread> threads;
3434
threads.reserve(thread_num);
35-
for (int32_t i = 0; i < thread_num; ++i) {
35+
for (size_t i = 0; i < thread_num; ++i) {
3636
threads.emplace_back([&thread_num, &mutex,
3737
&tids, &barrier, &callback]{
3838
callback(thread_num, mutex, tids, barrier);

0 commit comments

Comments
 (0)