Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/include elide conversion warning.
details: https://anonhg.NetBSD.org/src/rev/0069e75cb7d9
branches: trunk
changeset: 350546:0069e75cb7d9
user: christos <christos%NetBSD.org@localhost>
date: Fri Jan 13 19:30:38 2017 +0000
description:
elide conversion warning.
diffstat:
sys/arch/arm/include/byte_swap.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (21 lines):
diff -r 3677e1593cf2 -r 0069e75cb7d9 sys/arch/arm/include/byte_swap.h
--- a/sys/arch/arm/include/byte_swap.h Fri Jan 13 19:28:55 2017 +0000
+++ b/sys/arch/arm/include/byte_swap.h Fri Jan 13 19:30:38 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: byte_swap.h,v 1.13 2013/01/28 06:16:05 matt Exp $ */
+/* $NetBSD: byte_swap.h,v 1.14 2017/01/13 19:30:38 christos Exp $ */
/*-
* Copyright (c) 1997, 1999, 2002 The NetBSD Foundation, Inc.
@@ -108,9 +108,9 @@
}
#endif
v &= 0xffff;
- v = (v >> 8) | (v << 8);
+ v = (uint16_t)((v >> 8) | (v << 8));
- return (v);
+ return v;
}
__END_DECLS
Home |
Main Index |
Thread Index |
Old Index