Commit bdf965125c3abb468bea2d2a4d1d88ed4d8f1f92

Sven Strickroth 2019-12-03T21:17:30

MSVC: Fix warning C4133 on x64: "function": Incompatible types - from "unsigned long *" to "size_t *" Signed-off-by: Sven Strickroth <email@cs-ware.de>

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/regexp.c b/src/regexp.c
index 05ed190..5fe49f3 100644
--- a/src/regexp.c
+++ b/src/regexp.c
@@ -78,7 +78,7 @@ out:
 int git_regexp_compile(git_regexp *r, const char *pattern, int flags)
 {
 	unsigned char errmsg[1024];
-	unsigned long erroff;
+	PCRE2_SIZE erroff;
 	int error, cflags = 0;
 
 	if (flags & GIT_REGEXP_ICASE)