From 1bacb3dffecdc5b1851d5dc9d558d1f84c5d9d03 Mon Sep 17 00:00:00 2001 From: bje Date: Mon, 6 Feb 2006 04:27:16 +0000 Subject: * decLibrary.c (__dec_byte_swap): Use uint32_t for argument and return types. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110638 138bc75d-0d04-0410-961f-82ee72b054a4 --- libdecnumber/ChangeLog | 5 +++++ libdecnumber/decLibrary.c | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) (limited to 'libdecnumber') 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 + + * decLibrary.c (__dec_byte_swap): Use uint32_t for argument and + return types. + 2006-01-03 Roger Sayle Kaveh R. Ghazi 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; -- cgit v1.2.1