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>
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 {