diff options
author | 2019-02-17 15:44:26 +0000 | |
---|---|---|
committer | 2019-02-17 15:44:26 +0000 | |
commit | e9a8150065b24ecdeb158fae3d19fa220ea67402 (patch) | |
tree | ba222bf97dfdc17ee9299bd43c9497a4debff27f | |
parent | Make bridge_rtupdate() return an error value instead of a pointer. (diff) | |
download | wireguard-openbsd-e9a8150065b24ecdeb158fae3d19fa220ea67402.tar.xz wireguard-openbsd-e9a8150065b24ecdeb158fae3d19fa220ea67402.zip |
sprinle some casts to quiet compiler; ok millert
-rw-r--r-- | sys/arch/sh/include/endian.h | 6 |
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); } |