diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2011-06-20 20:12:58 +0000 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2011-06-20 20:12:58 +0000 |
| commit | 2b61f7ce64b083c476b6c8eca04475aa17f94f70 (patch) | |
| tree | 34b9b6030c6dc88724f64d3a1048708c60a5946d | |
| parent | 287d69d7c472d9f60e20ec3aeb1c14fcc7dcb492 (diff) | |
| download | rockbox-2b61f7ce64b083c476b6c8eca04475aa17f94f70.zip rockbox-2b61f7ce64b083c476b6c8eca04475aa17f94f70.tar.gz rockbox-2b61f7ce64b083c476b6c8eca04475aa17f94f70.tar.bz2 rockbox-2b61f7ce64b083c476b6c8eca04475aa17f94f70.tar.xz | |
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
| -rw-r--r-- | firmware/common/dircache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/common/dircache.c b/firmware/common/dircache.c index b6f3f80..27784ae 100644 --- a/firmware/common/dircache.c +++ b/firmware/common/dircache.c @@ -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; |