diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-02 23:48:24 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-02 23:48:24 +0000 |
commit | 26106956ef6123257239c131b2b57c004fb21313 (patch) | |
tree | dd337e98138e2da58b3e49d8165131ab88d7a068 /gcc/ggc-common.c | |
parent | 93e9a106ded2a9bc86fd48960edcda36f6047dc2 (diff) | |
download | gcc-26106956ef6123257239c131b2b57c004fb21313.tar.gz |
* ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
warnings.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63704 138bc75d-0d04-0410-961f-82ee72b054a4
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 |