]> git.ipfire.org Git - thirdparty/git.git/commitdiff
trace2: use size_t alloc,nr_open_regions in tr2tls_thread_ctx
authorJeff Hostetler <jeffhost@microsoft.com>
Mon, 24 Oct 2022 13:41:00 +0000 (13:41 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Oct 2022 19:45:25 +0000 (12:45 -0700)
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>
trace2/tr2_tls.h

index b1e327a928e2ba084714770c85c15a219dab35f3..a90bd639d4879832f010f873836d4dbedd59dfba 100644 (file)
@@ -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;
 };