summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2019-02-17 15:44:27 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2019-02-17 15:44:27 +0000
commite584383286c603056d37d7b3de1c68f1f0055d37 (patch)
tree700d56e56a1c277dcf69f81652a18e6ce7b8fe45 /sys
parentae0cff4ce7f2e4c151d1b6b4712068b9bbfea54e (diff)
sprinle some casts to quiet compiler; ok millert
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sh/include/endian.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sh/include/endian.h b/sys/arch/sh/include/endian.h
index b80fbe6a1f2..32cb0513aed 100644
--- a/sys/arch/sh/include/endian.h
+++ b/sys/arch/sh/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.7 2018/10/05 15:13:55 naddy Exp $ */
+/* $OpenBSD: endian.h,v 1.8 2019/02/17 15:44:26 deraadt Exp $ */
/* $NetBSD: endian.h,v 1.4 2000/03/17 00:09:25 mycroft Exp $ */
/* Written by Manuel Bouyer. Public domain */
@@ -36,8 +36,8 @@ __swap64md(__uint64_t _x)
{
__uint64_t _rv;
- _rv = (__uint64_t)__swap32md(_x >> 32) |
- (__uint64_t)__swap32md(_x) << 32;
+ _rv = (__uint64_t)__swap32md((__uint32_t)(_x >> 32)) |
+ (__uint64_t)__swap32md((__uint32_t)_x) << 32;
return (_rv);
}