Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/vax/include cast return value



details:   https://anonhg.NetBSD.org/src/rev/6b5ecffa7d8b
branches:  trunk
changeset: 820753:6b5ecffa7d8b
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 14 16:21:28 2017 +0000

description:
cast return value

diffstat:

 sys/arch/vax/include/byte_swap.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 477801c270c6 -r 6b5ecffa7d8b sys/arch/vax/include/byte_swap.h
--- a/sys/arch/vax/include/byte_swap.h  Sat Jan 14 16:15:10 2017 +0000
+++ b/sys/arch/vax/include/byte_swap.h  Sat Jan 14 16:21:28 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: byte_swap.h,v 1.11 2006/02/17 08:41:31 skrll Exp $     */
+/*     $NetBSD: byte_swap.h,v 1.12 2017/01/14 16:21:28 christos Exp $  */
 
 /*
  * Copyright (c) 1987, 1991 Regents of the University of California.
@@ -61,7 +61,7 @@
 __byte_swap_u16_variable(uint16_t x)
 {
 
-       return (x << 8 | x >> 8);
+       return (uint16_t)(x << 8 | x >> 8);
 }
 
 __END_DECLS



Home | Main Index | Thread Index | Old Index