Module Name:    src
Committed By:   christos
Date:           Sat Jan 14 16:21:28 UTC 2017

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

Log Message:
cast return value


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/vax/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/vax/include/byte_swap.h
diff -u src/sys/arch/vax/include/byte_swap.h:1.11 src/sys/arch/vax/include/byte_swap.h:1.12
--- src/sys/arch/vax/include/byte_swap.h:1.11	Fri Feb 17 03:41:31 2006
+++ src/sys/arch/vax/include/byte_swap.h	Sat Jan 14 11:21:28 2017
@@ -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 @@ static __inline uint16_t __attribute__((
 __byte_swap_u16_variable(uint16_t x)
 {
 
-	return (x << 8 | x >> 8);
+	return (uint16_t)(x << 8 | x >> 8);
 }
 
 __END_DECLS

Reply via email to