[PATCH 14/15] cpukit/libdl/rtl-mdreloc-m32r.c: Add parentheses per Chris' suggestion

Joel Sherrill joel.sherrill at oarcorp.com
Mon Mar 9 17:38:54 UTC 2015


---
 cpukit/libdl/rtl-mdreloc-m32r.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/libdl/rtl-mdreloc-m32r.c b/cpukit/libdl/rtl-mdreloc-m32r.c
index de32f06..265e9cb 100644
--- a/cpukit/libdl/rtl-mdreloc-m32r.c
+++ b/cpukit/libdl/rtl-mdreloc-m32r.c
@@ -69,7 +69,7 @@ rtems_rtl_elf_relocate_rela (const rtems_rtl_obj_t*      obj,
         printf("24_RELA Overflow\n");
         return false;
       }
-      *where = (*where & 0xff000000) | tmp & 0xffffff;
+      *where = (*where & 0xff000000) | (tmp & 0xffffff);
       break;
 
     case R_TYPE(32_RELA):
-- 
1.9.3




More information about the devel mailing list