]> wimlib.net Git - wimlib/blobdiff - include/wimlib/inode.h
Save memory by avoiding padding after sha1_hash fields
[wimlib] / include / wimlib / inode.h
index 3fbb4039d658af19289762946dd16cd127f7bf60..777a05b5440501e66a247bc99bef57d10e9ee835 100644 (file)
@@ -70,7 +70,7 @@ struct wim_inode_stream {
        union {
                u8 _stream_hash[SHA1_HASH_SIZE];
                struct blob_descriptor *_stream_blob;
-       };
+       } _packed_attribute; /* union is SHA1_HASH_SIZE bytes */
 
        /* 'stream_resolved' determines whether 'stream_hash' or 'stream_blob'
         * is valid as described above.  */