Commit f7fcb0dd1be9c6b863468303d082c27e2583bb13

Vicent Marti 2011-03-04T15:10:16

Don't use non-int bit fields They are not standard. MSVC complains about them. And that's not good. Signed-off-by: Vicent Marti <tanoku@gmail.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/repository.h b/src/repository.h
index 4af062e..4f4a4a8 100644
--- a/src/repository.h
+++ b/src/repository.h
@@ -27,7 +27,7 @@ struct git_object {
 	git_repository *repo;
 	git_odb_source source;
 	unsigned short refcount;
-	short in_memory:1, modified:1;
+	unsigned char in_memory, modified;
 };
 
 struct git_repository {