about summary refs log tree commit diff
path: root/bits
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-12-27 04:24:10 +0000
committerUlrich Drepper <drepper@redhat.com>2000-12-27 04:24:10 +0000
commit945c975dffbff130148aace42708fc4b45493a0e (patch)
tree8d26b3a174aeae281178d67575b7aed410079f8f /bits
parentbe76803a73a6a65929a5f770e694e1116ae419fd (diff)
downloadglibc-945c975dffbff130148aace42708fc4b45493a0e.tar.gz
glibc-945c975dffbff130148aace42708fc4b45493a0e.tar.xz
glibc-945c975dffbff130148aace42708fc4b45493a0e.zip
Update.
2000-12-26  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/generic/bits/byteswap.h (__bswap_64): Make it usable for
	64bit platforms.  Reported by Dave Gilbert <gilbertd@treblig.org>.
Diffstat (limited to 'bits')
-rw-r--r--bits/byteswap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/bits/byteswap.h b/bits/byteswap.h
index 6b5115658b..b193ea19ec 100644
--- a/bits/byteswap.h
+++ b/bits/byteswap.h
@@ -1,5 +1,5 @@
 /* Macros to swap the order of bytes in integer values.
-   Copyright (C) 1997, 1998 Free Software Foundation, Inc.
+   Copyright (C) 1997, 1998, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -56,7 +56,7 @@ __bswap_32 (unsigned int __bsx)
 # define __bswap_64(x) \
      (__extension__							      \
       ({ union { unsigned long long int __ll;				      \
-		 unsigned long int __l[2]; } __v, __r;			      \
+		 unsigned int __l[2]; } __v, __r;			      \
 	 __v.__ll = (x);						      \
 	 __r.__l[0] = __bswap_32 (__v.__l[1]);				      \
 	 __r.__l[1] = __bswap_32 (__v.__l[0]);				      \