From daaae99c1cbeca2a67065ac5ac5d4e9eb32df109 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Wed, 7 Sep 2011 23:20:12 +0000 Subject: [PATCH] Remove unecessary casting git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30470 a1c6a512-1295-4272-9138-f99709370657 --- firmware/buflib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/buflib.c b/firmware/buflib.c index 7c5f3d208e..d6cbf3049b 100644 --- a/firmware/buflib.c +++ b/firmware/buflib.c @@ -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) { - 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; if (len <= 1) return NULL;