From 74134fc76d72a20c3a819f12106354de2df43825 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Tue, 25 May 2010 09:49:52 +0200 Subject: [PATCH] fixed alignment of cached data --- include/ntfs-3g/cache.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/ntfs-3g/cache.h b/include/ntfs-3g/cache.h index 67c33251..67e4f9da 100644 --- a/include/ntfs-3g/cache.h +++ b/include/ntfs-3g/cache.h @@ -29,7 +29,11 @@ struct CACHED_GENERIC { struct CACHED_GENERIC *previous; void *variable; size_t varsize; - void *fixed[0]; + union { + /* force alignment for pointers and u64 */ + u64 u64align; + void *ptralign; + } fixed[0]; } ; struct CACHED_INODE {