diff --git a/elfio/elf_types.hpp b/elfio/elf_types.hpp index a83e2cf..63d025a 100644 --- a/elfio/elf_types.hpp +++ b/elfio/elf_types.hpp @@ -827,7 +827,7 @@ struct Elf64_Rela { #define ELF64_R_SYM(i) ((i)>>32) #define ELF64_R_TYPE(i) ((i)&0xffffffffL) -#define ELF64_R_INFO(s,t) ((((int64_t)s)<<32)+((t)&0xffffffffL)) +#define ELF64_R_INFO(s,t) ((((int64_t)(s))<<32)+((t)&0xffffffffL)) // Dynamic structure struct Elf32_Dyn {