Module Name:    src
Committed By:   christos
Date:           Fri Jan 13 19:30:38 UTC 2017

Modified Files:
        src/sys/arch/arm/include: byte_swap.h

Log Message:
elide conversion warning.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/arm/include/byte_swap.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/arm/include/byte_swap.h
diff -u src/sys/arch/arm/include/byte_swap.h:1.13 src/sys/arch/arm/include/byte_swap.h:1.14
--- src/sys/arch/arm/include/byte_swap.h:1.13	Mon Jan 28 01:16:05 2013
+++ src/sys/arch/arm/include/byte_swap.h	Fri Jan 13 14:30:38 2017
@@ -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 @@ __byte_swap_u16_variable(uint16_t v)
 	}
 #endif
 	v &= 0xffff;
-	v = (v >> 8) | (v << 8);
+	v = (uint16_t)((v >> 8) | (v << 8));
 
-	return (v);
+	return v;
 }
 
 __END_DECLS

Reply via email to