Skip to content

Commit 9cfc01e

Browse files
committed
Merge branch 'jk/strvec-typefix' into maint
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
2 parents b809c3d + 8d133a4 commit 9cfc01e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

strvec.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ extern const char *empty_strvec[];
2929
*/
3030
struct strvec {
3131
const char **v;
32-
int nr;
33-
int alloc;
32+
size_t nr;
33+
size_t alloc;
3434
};
3535

3636
#define STRVEC_INIT { empty_strvec, 0, 0 }

0 commit comments

Comments
 (0)