summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2021-09-23 13:44:46 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-09-23 13:44:46 -0700
commit91b2c793947e1ef39a022c520be28f3f7d72e674 (patch)
tree6f60e5f6218b3c5f536f73d094329c9a29c75f5a
parentMerge branch 'rs/drop-core-compression-vars' (diff)
parentstrvec: use size_t to store nr and alloc (diff)
downloadtgif-91b2c793947e1ef39a022c520be28f3f7d72e674.tar.xz
Merge branch 'jk/strvec-typefix'
Correct nr and alloc members of strvec struct to be of type size_t. * jk/strvec-typefix: strvec: use size_t to store nr and alloc
-rw-r--r--strvec.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/strvec.h b/strvec.h
index fdcad75b45..6b3cbd6758 100644
--- a/strvec.h
+++ b/strvec.h
@@ -29,8 +29,8 @@ extern const char *empty_strvec[];
*/
struct strvec {
const char **v;
- int nr;
- int alloc;
+ size_t nr;
+ size_t alloc;
};
#define STRVEC_INIT { empty_strvec, 0, 0 }