Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/linux/common Add ULL to a 64-bit integer constant.
details: https://anonhg.NetBSD.org/src/rev/7227e8441291
branches: trunk
changeset: 539721:7227e8441291
user: thorpej <thorpej%NetBSD.org@localhost>
date: Mon Nov 25 02:11:23 2002 +0000
description:
Add ULL to a 64-bit integer constant.
diffstat:
sys/compat/linux/common/linux_misc.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 17df9cf3b5e9 -r 7227e8441291 sys/compat/linux/common/linux_misc.c
--- a/sys/compat/linux/common/linux_misc.c Mon Nov 25 02:10:28 2002 +0000
+++ b/sys/compat/linux/common/linux_misc.c Mon Nov 25 02:11:23 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_misc.c,v 1.113 2002/11/13 15:20:04 jdolecek Exp $ */
+/* $NetBSD: linux_misc.c,v 1.114 2002/11/25 02:11:23 thorpej Exp $ */
/*-
* Copyright (c) 1995, 1998, 1999 The NetBSD Foundation, Inc.
@@ -64,7 +64,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.113 2002/11/13 15:20:04 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.114 2002/11/25 02:11:23 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1491,7 +1491,8 @@
}
#define bsd_to_linux_rlimit1(l, b, f) \
- (l)->f = ((b)->f == RLIM_INFINITY || ((b)->f & 0xffffffff00000000) != 0) ? \
+ (l)->f = ((b)->f == RLIM_INFINITY || \
+ ((b)->f & 0xffffffff00000000ULL) != 0) ? \
LINUX_RLIM_INFINITY : (int32_t)(b)->f
#define bsd_to_linux_rlimit(l, b) \
bsd_to_linux_rlimit1(l, b, rlim_cur); \
Home |
Main Index |
Thread Index |
Old Index