[PPL-devel] [GIT] ppl/ppl(sparse_matrices): Fixed the argument type of limit_virtual_memory(): should be unsigned long .
Roberto Bagnara
bagnara at cs.unipr.it
Sat Aug 28 14:06:43 CEST 2010
Module: ppl/ppl
Branch: sparse_matrices
Commit: 512ff26f25f4d9ac96a55982fa76d78607555de6
URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=512ff26f25f4d9ac96a55982fa76d78607555de6
Author: Roberto Bagnara <bagnara at cs.unipr.it>
Date: Sat Aug 28 14:00:21 2010 +0200
Fixed the argument type of limit_virtual_memory(): should be unsigned long.
---
demos/ppl_lpsol/ppl_lpsol.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/demos/ppl_lpsol/ppl_lpsol.c b/demos/ppl_lpsol/ppl_lpsol.c
index cf3a6dd..ec4a5d6 100644
--- a/demos/ppl_lpsol/ppl_lpsol.c
+++ b/demos/ppl_lpsol/ppl_lpsol.c
@@ -521,7 +521,7 @@ set_alarm_on_cpu_time(unsigned seconds, void (*handler)(int)) {
#if PPL_HAVE_DECL_RLIMIT_AS
void
-limit_virtual_memory(unsigned bytes) {
+limit_virtual_memory(unsigned long bytes) {
struct rlimit t;
if (getrlimit(RLIMIT_AS, &t) != 0)
@@ -537,7 +537,7 @@ limit_virtual_memory(unsigned bytes) {
#else
void
-limit_virtual_memory(unsigned bytes ATTRIBUTE_UNUSED) {
+limit_virtual_memory(unsigned long bytes ATTRIBUTE_UNUSED) {
}
#endif /* !PPL_HAVE_DECL_RLIMIT_AS */
More information about the PPL-devel
mailing list