Skip to content

Commit

Permalink
trace2: use size_t alloc,nr_open_regions in tr2tls_thread_ctx
Browse files Browse the repository at this point in the history
Use "size_t" rather than "int" for the "alloc" and "nr_open_regions"
fields in the "tr2tls_thread_ctx".  These are used by ALLOC_GROW().

Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
jeffhostetler authored and gitster committed Oct 24, 2022
1 parent d420dda commit 545ddca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trace2/tr2_tls.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
struct tr2tls_thread_ctx {
struct strbuf thread_name;
uint64_t *array_us_start;
int alloc;
int nr_open_regions; /* plays role of "nr" in ALLOC_GROW */
size_t alloc;
size_t nr_open_regions; /* plays role of "nr" in ALLOC_GROW */
int thread_id;
};

Expand Down

0 comments on commit 545ddca

Please sign in to comment.