Commit ad8c8d9325397c9c6979e16e889de432beee8c9b

Jacques Germishuys 2014-09-25T12:05:48

Ensure pool data is aligned on an 8 byte boundary

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/pool.c b/src/pool.c
index a516ff9..3055527 100644
--- a/src/pool.c
+++ b/src/pool.c
@@ -7,7 +7,7 @@ struct git_pool_page {
 	git_pool_page *next;
 	uint32_t size;
 	uint32_t avail;
-	char data[GIT_FLEX_ARRAY];
+	GIT_ALIGN(char data[GIT_FLEX_ARRAY], 8);
 };
 
 struct pool_freelist {