diff --git a/sys/sys/resource.h b/sys/sys/resource.h index af0d86ddfa92..d7b25d59a713 100644 --- a/sys/sys/resource.h +++ b/sys/sys/resource.h @@ -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 */