summaryrefslogtreecommitdiff
path: root/elfutils/libelf/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'elfutils/libelf/common.h')
-rw-r--r--elfutils/libelf/common.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/elfutils/libelf/common.h b/elfutils/libelf/common.h
index 5b00cacb..ac1c61d6 100644
--- a/elfutils/libelf/common.h
+++ b/elfutils/libelf/common.h
@@ -1,5 +1,5 @@
/* Common definitions for handling files in memory or only on disk.
- Copyright (C) 1998, 1999, 2000, 2002 Red Hat, Inc.
+ Copyright (C) 1998, 1999, 2000, 2002, 2005 Red Hat, Inc.
Written by Ulrich Drepper <drepper@redhat.com>, 1998.
This program is free software; you can redistribute it and/or modify
@@ -120,7 +120,7 @@ libelf_release_all (Elf *elf)
has to use itself. */
#define CONVERT(Var) \
(Var) = (sizeof (Var) == 1 \
- ? (Var) \
+ ? (unsigned char) (Var) \
: (sizeof (Var) == 2 \
? bswap_16 (Var) \
: (sizeof (Var) == 4 \
@@ -129,7 +129,7 @@ libelf_release_all (Elf *elf)
#define CONVERT_TO(Dst, Var) \
(Dst) = (sizeof (Var) == 1 \
- ? (Var) \
+ ? (unsigned char) (Var) \
: (sizeof (Var) == 2 \
? bswap_16 (Var) \
: (sizeof (Var) == 4 \