summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-05-01 02:17:29 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-05-01 02:17:29 +0000
commit5c71adb6ed98423fc9e3346b1167c78326627fad (patch)
tree8ac18d8365eac95b812e31157134e1ebbaf943aa /sys
parentb3cd3fc60b1b0b36cf125d82be94e58ced0bdce1 (diff)
Fix unbalanced parens in __swap64gen macro for non-gcc; Hugh C Kennedy
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/endian.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/endian.h b/sys/sys/endian.h
index 77fe19a87b3..e31fd6590df 100644
--- a/sys/sys/endian.h
+++ b/sys/sys/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.8 2002/03/14 01:27:14 millert Exp $ */
+/* $OpenBSD: endian.h,v 1.9 2003/05/01 02:17:28 millert Exp $ */
/*-
* Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
@@ -94,7 +94,7 @@
((u_int32_t)(x) & 0xff000000) >> 24)
#define __swap64gen(x) \
- (u_int64_t)(((u_int64_t)(x) & 0xff) << 56) | \
+ (u_int64_t)((((u_int64_t)(x) & 0xff) << 56) | \
((u_int64_t)(x) & 0xff00) << 40 | \
((u_int64_t)(x) & 0xff0000) << 24 | \
((u_int64_t)(x) & 0xff000000) << 8 | \