Skip to content

Commit 545ddca

Browse files
jeffhostetlergitster
authored andcommitted
trace2: use size_t alloc,nr_open_regions in tr2tls_thread_ctx
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d420dda commit 545ddca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

trace2/tr2_tls.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
struct tr2tls_thread_ctx {
1212
struct strbuf thread_name;
1313
uint64_t *array_us_start;
14-
int alloc;
15-
int nr_open_regions; /* plays role of "nr" in ALLOC_GROW */
14+
size_t alloc;
15+
size_t nr_open_regions; /* plays role of "nr" in ALLOC_GROW */
1616
int thread_id;
1717
};
1818

0 commit comments

Comments
 (0)