summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-09-23 20:44:46 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-09-23 20:44:46 (GMT)
commit91b2c793947e1ef39a022c520be28f3f7d72e674 (patch)
tree6f60e5f6218b3c5f536f73d094329c9a29c75f5a
parente3b77a2d03258bc640076a2319cd3c289e87a389 (diff)
parent8d133a4653abed4b06d3deb8bd71cf55cd87c990 (diff)
downloadgit-91b2c793947e1ef39a022c520be28f3f7d72e674.zip
git-91b2c793947e1ef39a022c520be28f3f7d72e674.tar.gz
git-91b2c793947e1ef39a022c520be28f3f7d72e674.tar.bz2
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 fdcad75..6b3cbd6 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 }