Remove unecessary casting

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30470 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2011-09-07 23:20:12 +00:00
parent 5296af838c
commit daaae99c1c

View file

@ -687,7 +687,7 @@ buflib_shrink(struct buflib_context* ctx, int handle, void* new_start, size_t ne
const char* buflib_get_name(struct buflib_context *ctx, int handle) const char* buflib_get_name(struct buflib_context *ctx, int handle)
{ {
union buflib_data *data = (union buflib_data*)ALIGN_DOWN((intptr_t)buflib_get_data(ctx, handle), sizeof (*data)); union buflib_data *data = ALIGN_DOWN(buflib_get_data(ctx, handle), sizeof (*data));
size_t len = data[-1].val; size_t len = data[-1].val;
if (len <= 1) if (len <= 1)
return NULL; return NULL;