diff options
author | Ben Elliston <bje@au.ibm.com> | 2006-02-06 04:27:16 +0000 |
---|---|---|
committer | Ben Elliston <bje@gcc.gnu.org> | 2006-02-06 15:27:16 +1100 |
commit | 8a46b94f6ce2aeeb147184fbeaee8d6fb2e7a256 (patch) | |
tree | 23de0adca05ab8b0e87997abf4b68c207d3984a1 /libdecnumber | |
parent | a4a9df5fee4d05f6627b1de44b6e8d2b044e6220 (diff) | |
download | gcc-8a46b94f6ce2aeeb147184fbeaee8d6fb2e7a256.tar.gz |
decLibrary.c (__dec_byte_swap): Use uint32_t for argument and return types.
* decLibrary.c (__dec_byte_swap): Use uint32_t for argument and
return types.
From-SVN: r110638
Diffstat (limited to 'libdecnumber')
-rw-r--r-- | libdecnumber/ChangeLog | 5 | ||||
-rw-r--r-- | libdecnumber/decLibrary.c | 10 |
2 files changed, 10 insertions, 5 deletions
diff --git a/libdecnumber/ChangeLog b/libdecnumber/ChangeLog index d5fdc35ebfd..045dcd3038b 100644 --- a/libdecnumber/ChangeLog +++ b/libdecnumber/ChangeLog @@ -1,3 +1,8 @@ +2006-02-06 Ben Elliston <bje@au.ibm.com> + + * decLibrary.c (__dec_byte_swap): Use uint32_t for argument and + return types. + 2006-01-03 Roger Sayle <roger@eyesopen.com> Kaveh R. Ghazi <ghazi@caip.rutgers.edu> diff --git a/libdecnumber/decLibrary.c b/libdecnumber/decLibrary.c index 1576f28555e..19468ac892e 100644 --- a/libdecnumber/decLibrary.c +++ b/libdecnumber/decLibrary.c @@ -1,5 +1,5 @@ /* Temporary library support for decimal floating point. - Copyright (C) 2005 Free Software Foundation, Inc. + Copyright (C) 2005, 2006 Free Software Foundation, Inc. This file is part of GCC. @@ -81,13 +81,13 @@ __dfp_raise (int exception __attribute__ ((unused))) raise (SIGFPE); } -unsigned long -__dec_byte_swap (unsigned long in) +uint32_t +__dec_byte_swap (uint32_t in) { - unsigned long out; + uint32_t out = 0; unsigned char *p = (unsigned char *) &out; union { - unsigned long i; + uint32_t i; unsigned char b[4]; } u; |