summaryrefslogtreecommitdiff
path: root/gcc/dfp.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/dfp.c')
-rw-r--r--gcc/dfp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/dfp.c b/gcc/dfp.c
index 55c6f2de4f5..804f2031ca1 100644
--- a/gcc/dfp.c
+++ b/gcc/dfp.c
@@ -36,13 +36,13 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
#include "decimal32.h"
#include "decNumber.h"
-static unsigned long
-dfp_byte_swap (unsigned long in)
+static uint32_t
+dfp_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;