From d5262fcbc8647dff9456bb93053036d0ddd5b43a Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 14 Oct 2014 08:39:43 +0200 Subject: [PATCH] bsps/powerpc: Fix the warning fix --- .../powerpc/new-exceptions/bspsupport/ppc_exc_alignment.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_alignment.c b/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_alignment.c index 4879966c9d..732ff96b18 100644 --- a/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_alignment.c +++ b/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_alignment.c @@ -25,9 +25,9 @@ int ppc_exc_alignment_handler(BSP_Exception_frame *frame, unsigned excNum) unsigned a = (opcode >> 16) & 0x1f; unsigned b = (opcode >> 11) & 0x1f; PPC_GPR_TYPE *regs = &frame->GPR0; - PPC_GPR_TYPE *current = (PPC_GPR_TYPE *) - (((a == 0 ? 0 : regs [a]) + regs [b]) & (clsz - 1)); - PPC_GPR_TYPE *end = current + clsz / sizeof(PPC_GPR_TYPE); + unsigned *current = (unsigned *) + (((a == 0 ? 0 : (unsigned) regs[a]) + (unsigned) regs[b]) & (clsz - 1)); + unsigned *end = current + clsz / sizeof(*current); while (current != end) { *current = 0;