diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2003-03-02 23:48:24 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2003-03-02 23:48:24 +0000 |
commit | a2581175b41bd4cc6655470af8f80f6921e0a6a9 (patch) | |
tree | dd337e98138e2da58b3e49d8165131ab88d7a068 /gcc/ggc-common.c | |
parent | 80a82278268b6010d8b784f8cc764ceca3b1de53 (diff) | |
download | gcc-a2581175b41bd4cc6655470af8f80f6921e0a6a9.tar.gz |
ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid warnings.
* ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
warnings.
From-SVN: r63704
Diffstat (limited to 'gcc/ggc-common.c')
-rw-r--r-- | gcc/ggc-common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ggc-common.c b/gcc/ggc-common.c index 5b0e330ecfd..a6b7ea3aa4b 100644 --- a/gcc/ggc-common.c +++ b/gcc/ggc-common.c @@ -640,19 +640,19 @@ ggc_rlimit_bound (limit) struct rlimit rlim; # ifdef RLIMIT_RSS if (getrlimit (RLIMIT_RSS, &rlim) == 0 - && rlim.rlim_cur != RLIM_INFINITY + && rlim.rlim_cur != (rlim_t) RLIM_INFINITY && rlim.rlim_cur < limit) limit = rlim.rlim_cur; # endif # ifdef RLIMIT_DATA if (getrlimit (RLIMIT_DATA, &rlim) == 0 - && rlim.rlim_cur != RLIM_INFINITY + && rlim.rlim_cur != (rlim_t) RLIM_INFINITY && rlim.rlim_cur < limit) limit = rlim.rlim_cur; # endif # ifdef RLIMIT_AS if (getrlimit (RLIMIT_AS, &rlim) == 0 - && rlim.rlim_cur != RLIM_INFINITY + && rlim.rlim_cur != (rlim_t) RLIM_INFINITY && rlim.rlim_cur < limit) limit = rlim.rlim_cur; # endif |