The little/big endian code was switched.
authordrepper <drepper>
Fri, 26 May 2000 19:55:43 +0000 (19:55 +0000)
committerdrepper <drepper>
Fri, 26 May 2000 19:55:43 +0000 (19:55 +0000)
sysdeps/unix/sysv/linux/pread64.c

index 628fd43..1bf08dc 100644 (file)
@@ -49,12 +49,12 @@ __libc_pread64 (fd, buf, count, offset)
   /* First try the syscall.  */
 # if __BYTE_ORDER == __LITTLE_ENDIAN
   result = INLINE_SYSCALL (pread, 5, fd, buf, count,
-                          (off_t) (offset >> 32),
-                          (off_t) (offset & 0xffffffff));
-# elif __BYTE_ORDER == __BIG_ENDIAN
-  result = INLINE_SYSCALL (pread, 5, fd, buf, count,
                           (off_t) (offset & 0xffffffff),
                           (off_t) (offset >> 32));
+# elif __BYTE_ORDER == __BIG_ENDIAN
+  result = INLINE_SYSCALL (pread, 5, fd, buf, count,
+                          (off_t) (offset >> 32),
+                          (off_t) (offset & 0xffffffff));
 # endif
 
 # if __ASSUME_PREAD_SYSCALL == 0