about summary refs log tree commit diff
path: root/third_party/cgit/parsing.c
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/cgit/parsing.c')
-rw-r--r--third_party/cgit/parsing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/cgit/parsing.c b/third_party/cgit/parsing.c
index 7b3980e6b1..b4b5f904dc 100644
--- a/third_party/cgit/parsing.c
+++ b/third_party/cgit/parsing.c
@@ -72,7 +72,7 @@ static void parse_user(const char *t, char **name, char **email, unsigned long *
 	struct ident_split ident;
 	unsigned email_len;
 
-	if (!split_ident_line(&ident, t, strchrnul(t, '\n') - t)) {
+	if (!split_ident_line(&ident, t, (uintptr_t)strchrnul(t, '\n') - (uintptr_t)t)) {
 		*name = substr(ident.name_begin, ident.name_end);
 
 		email_len = ident.mail_end - ident.mail_begin;