Fix the type to avoid comparison of integers of different signs.

PiperOrigin-RevId: 256296358
This commit is contained in:
Chao Mei 2019-07-02 21:23:07 -07:00 committed by TensorFlower Gardener
parent bd47c75917
commit 720e198425

View File

@ -60,7 +60,7 @@ struct Context final {
} }
void EnsureNPerThreadStates(int thread_count) { void EnsureNPerThreadStates(int thread_count) {
while (per_thread_states.size() < thread_count) { while (per_thread_states.size() < static_cast<std::size_t>(thread_count)) {
per_thread_states.emplace_back(new PerThreadState); per_thread_states.emplace_back(new PerThreadState);
} }
} }