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:
parent
287d69d7c4
commit
2b61f7ce64
1 changed files with 1 additions and 1 deletions
|
|
@ -851,7 +851,7 @@ int dircache_build(int last_size)
|
||||||
* and their corresponding d_name from the end
|
* and their corresponding d_name from the end
|
||||||
* after generation the buffer will be compacted with DIRCACHE_RESERVE
|
* after generation the buffer will be compacted with DIRCACHE_RESERVE
|
||||||
* free bytes inbetween */
|
* free bytes inbetween */
|
||||||
audiobuf = (char*)(((intptr_t)audiobuf & ~0x03) + 0x04);
|
audiobuf = ALIGN_UP(audiobuf, sizeof(struct dircache_entry*));
|
||||||
dircache_root = (struct dircache_entry*)audiobuf;
|
dircache_root = (struct dircache_entry*)audiobuf;
|
||||||
d_names_start = d_names_end = audiobufend - 1;
|
d_names_start = d_names_end = audiobufend - 1;
|
||||||
dircache_size = 0;
|
dircache_size = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue