X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Flttng-elf.c;h=cd10632ce46bbe6f9364d31d39aa15570be7fbaf;hp=cb01f7bb7d38195ed9e214ea784bd578379677c4;hb=b1b34226a182e5753625a1b1e30d339bedba6aae;hpb=ba49ae8cc1f9d51c2ef1a60b113fda2e58dc2a7c diff --git a/src/common/lttng-elf.c b/src/common/lttng-elf.c index cb01f7bb7..cd10632ce 100644 --- a/src/common/lttng-elf.c +++ b/src/common/lttng-elf.c @@ -56,13 +56,13 @@ do { \ switch (sizeof(x)) { \ case 8: \ - x = be64toh(x); \ + x = be64toh((uint64_t)x); \ break; \ case 4: \ - x = be32toh(x); \ + x = be32toh((uint32_t)x); \ break; \ case 2: \ - x = be16toh(x); \ + x = be16toh((uint16_t)x); \ break; \ case 1: \ break; \