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/9130332caed7
branches: trunk
changeset: 350611:9130332caed7
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 9d837f7612c5 -r 9130332caed7 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