From 49a19cfd34783bd7d261bb0caa4ffcda5aa44b96 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Thu, 15 May 2003 19:02:13 +0000 Subject: hex.c (_hex_value): Make this unsigned. libiberty/ChangeLog: 2003-05-14 Jim Blandy * hex.c (_hex_value): Make this unsigned. (hex_value): Update documentation for new return type. hex_value now expands to an unsigned int expression, to avoid unexpected sign extension when we store it in a bfd_vma, which is larger than int on some platforms. * functions.texi: Regenerated. include/ChangeLog: 2003-05-14 Jim Blandy * libiberty.h (hex_value): Make the value an unsigned int, to avoid unexpected sign-extension when cast to unsigned types larger than int --- like bfd_vma, on some platforms. (_hex_value): Update declaration. From-SVN: r66840 --- include/ChangeLog | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/ChangeLog') diff --git a/include/ChangeLog b/include/ChangeLog index e4aad2b..c7c271b 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,10 @@ +2003-05-15 Jim Blandy + + * libiberty.h (hex_value): Make the value an unsigned int, to + avoid unexpected sign-extension when cast to unsigned types larger + than int --- like bfd_vma, on some platforms. + (_hex_value): Update declaration. + 2003-05-07 Jason Merrill * hashtab.h (iterative_hash): Prototype. -- cgit v1.1