1
0
Fork 0
forked from len0rd/rockbox

Use ALIGN_UP() macro for alignment, in a more correct way also.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30041 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2011-06-20 20:12:58 +00:00
parent 287d69d7c4
commit 2b61f7ce64

View file

@ -851,7 +851,7 @@ int dircache_build(int last_size)
* and their corresponding d_name from the end
* after generation the buffer will be compacted with DIRCACHE_RESERVE
* free bytes inbetween */
audiobuf = (char*)(((intptr_t)audiobuf & ~0x03) + 0x04);
audiobuf = ALIGN_UP(audiobuf, sizeof(struct dircache_entry*));
dircache_root = (struct dircache_entry*)audiobuf;
d_names_start = d_names_end = audiobufend - 1;
dircache_size = 0;