Avoid quad overflow.

This commit is contained in:
christos 1998-12-09 14:39:09 +00:00
parent 983a6b1f22
commit caab3e8598

View File

@ -1,4 +1,4 @@
/* $NetBSD: resource.h,v 1.18 1998/05/24 19:30:19 kleink Exp $ */
/* $NetBSD: resource.h,v 1.19 1998/12/09 14:39:09 christos Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@ -93,7 +93,7 @@ struct rusage {
#define RLIM_NLIMITS 9 /* number of resource limits */
#define RLIM_INFINITY (((u_quad_t)1 << 63) - 1) /* no limit */
#define RLIM_INFINITY (~((u_quad_t)1 << 63)) /* no limit */
#define RLIM_SAVED_MAX RLIM_INFINITY /* unrepresentable hard limit */
#define RLIM_SAVED_CUR RLIM_INFINITY /* unrepresentable soft limit */