Skip to content

Commit

Permalink
Fix if condition in lf_tracing_tracepoint
Browse files Browse the repository at this point in the history
  • Loading branch information
erlingrj committed Mar 7, 2024
1 parent 0170ae7 commit 00e21ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trace/impl/src/trace_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ void lf_tracing_tracepoint(int worker, trace_record_nodeps_t* tr) {
// Therefore we should fall back to using a mutex.
lf_platform_mutex_lock(trace_mutex);
}
if (((size_t)tid) > trace._lf_number_of_trace_buffers) {
if (tid > (int)trace._lf_number_of_trace_buffers) {
lf_print_error_and_exit("the thread id (%d) exceeds the number of trace buffers (%zu)", tid,
trace._lf_number_of_trace_buffers);
}
Expand Down

0 comments on commit 00e21ac

Please sign in to comment.