Module Name:    src
Committed By:   christos
Date:           Mon Jul  9 00:46:19 UTC 2018

Modified Files:
        src/sys/sys: mman.h

Log Message:
cast align result to int, since the flags argument is expected to be an int.
>From Kamil


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/sys/sys/mman.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/sys/mman.h
diff -u src/sys/sys/mman.h:1.54 src/sys/sys/mman.h:1.55
--- src/sys/sys/mman.h:1.54	Tue Jul  3 21:17:32 2018
+++ src/sys/sys/mman.h	Sun Jul  8 20:46:19 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: mman.h,v 1.54 2018/07/04 01:17:32 kamil Exp $	*/
+/*	$NetBSD: mman.h,v 1.55 2018/07/09 00:46:19 christos Exp $	*/
 
 /*-
  * Copyright (c) 1982, 1986, 1993
@@ -106,7 +106,7 @@ typedef	__off_t		off_t;		/* file offset 
  * Alignment (expressed in log2).  Must be >= log2(PAGE_SIZE) and
  * < # bits in a pointer (32 or 64).
  */
-#define	MAP_ALIGNED(n)		((unsigned int)(n) << MAP_ALIGNMENT_SHIFT)
+#define	MAP_ALIGNED(n)	((int)((unsigned int)(n) << MAP_ALIGNMENT_SHIFT))
 #define	MAP_ALIGNMENT_SHIFT	24
 #define	MAP_ALIGNMENT_MASK	MAP_ALIGNED(0xff)
 #define	MAP_ALIGNMENT_64KB	MAP_ALIGNED(16)	/* 2^16 */

Reply via email to