Commit 77d65af4398c6e2b7b7d54cbc10857f02132740e

Russell Belfer 2012-06-19T15:16:38

Nicer constant

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/include/git2/index.h b/include/git2/index.h
index b8897ea..f863a60 100644
--- a/include/git2/index.h
+++ b/include/git2/index.h
@@ -95,7 +95,7 @@ enum {
 	GIT_INDEXCAP_IGNORE_CASE = 1,
 	GIT_INDEXCAP_NO_FILEMODE = 2,
 	GIT_INDEXCAP_NO_SYMLINKS = 4,
-	GIT_INDEXCAP_FROM_OWNER  = (unsigned int)-1
+	GIT_INDEXCAP_FROM_OWNER  = ~0u
 };
 
 /**