[rtems commit] powerpc: Fix warnings
Sebastian Huber
sebh at rtems.org
Thu Mar 2 11:03:07 UTC 2017
Module: rtems
Branch: master
Commit: 805d721304b10003782a8fe0608b70c3cde82faa
Changeset: http://git.rtems.org/rtems/commit/?id=805d721304b10003782a8fe0608b70c3cde82faa
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Mar 2 11:57:28 2017 +0100
powerpc: Fix warnings
---
c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_print.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_print.c b/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_print.c
index f745713..a0d9c1d 100644
--- a/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_print.c
+++ b/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_print.c
@@ -26,7 +26,7 @@
#ifndef __SPE__
#define GET_GPR(gpr) (gpr)
#else
- #define GET_GPR(gpr) ((int) ((gpr) >> 32))
+ #define GET_GPR(gpr) ((uint32_t) ((gpr) >> 32))
#endif
/* T. Straumann: provide a stack trace
More information about the vc
mailing list