Skip to content

Commit ad1548e

Browse files
authored
Merge pull request libgit2#5317 from csware/size_t
MSVC: Fix warning C4133 on x64: "function": Incompatible types - from "unsigned long *" to "size_t *"
2 parents 4fe52df + bdf9651 commit ad1548e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/regexp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ int git_regexp_search(const git_regexp *r, const char *string, size_t nmatches,
7878
int git_regexp_compile(git_regexp *r, const char *pattern, int flags)
7979
{
8080
unsigned char errmsg[1024];
81-
unsigned long erroff;
81+
PCRE2_SIZE erroff;
8282
int error, cflags = 0;
8383

8484
if (flags & GIT_REGEXP_ICASE)

0 commit comments

Comments
 (0)