From a00bd4687adac4d5f1880595262276e656375322 Mon Sep 17 00:00:00 2001 From: Yi Situ Date: Sun, 16 Feb 2020 15:18:17 -0800 Subject: [PATCH] Fix build broken by signed/unsigned comparisons. PiperOrigin-RevId: 295474359 Change-Id: I03d7f9653db2122be76d953bf93f19ec00e8d856 --- tensorflow/core/profiler/internal/cpu/host_tracer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/core/profiler/internal/cpu/host_tracer.cc b/tensorflow/core/profiler/internal/cpu/host_tracer.cc index 479ca8b448f..4d54093a1e2 100644 --- a/tensorflow/core/profiler/internal/cpu/host_tracer.cc +++ b/tensorflow/core/profiler/internal/cpu/host_tracer.cc @@ -110,7 +110,7 @@ Status HostTracer::CollectData(RunMetadata* run_metadata) { constexpr char kUserMetadataMarker = '#'; for (TraceMeRecorder::ThreadEvents& thread : events_) { - int32 thread_id = thread.thread.tid; + uint32_t thread_id = thread.thread.tid; thread_names->insert({thread_id, thread.thread.name}); for (TraceMeRecorder::Event& event : thread.events) { if (event.start_time && event.end_time) {