tree-diff: catch integer overflow in combine_diff_path allocation
[gitweb.git] / cache.h
diff --git a/cache.h b/cache.h
index 67141a46e432fe3c11b544e493ec0f98fcca9dc9..3efd7ac703061fe30576ac3629ce16eaf0a5c9bb 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -214,7 +214,7 @@ struct cache_entry {
 #define CE_INTENT_TO_ADD     (1 << 29)
 #define CE_SKIP_WORKTREE     (1 << 30)
 /* CE_EXTENDED2 is for future extension */
-#define CE_EXTENDED2         (1 << 31)
+#define CE_EXTENDED2         (1U << 31)
 
 #define CE_EXTENDED_FLAGS (CE_INTENT_TO_ADD | CE_SKIP_WORKTREE)