]> git.ipfire.org Git - thirdparty/git.git/blobdiff - cache.h
Fix warning about bitfield in struct ref
[thirdparty/git.git] / cache.h
diff --git a/cache.h b/cache.h
index 81e8c88e46e4c674aaa346bb7d1ea9931428bad5..6ccb76422961d900094792f418d6309ffd9bc4e8 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -493,10 +493,10 @@ struct ref {
        struct ref *next;
        unsigned char old_sha1[20];
        unsigned char new_sha1[20];
-       unsigned char force : 1;
-       unsigned char merge : 1;
-       unsigned char nonfastforward : 1;
-       unsigned char deletion : 1;
+       unsigned int force:1,
+               merge:1,
+               nonfastforward:1,
+               deletion:1;
        enum {
                REF_STATUS_NONE = 0,
                REF_STATUS_OK,