
Module: ppl/ppl Branch: sparse_matrices Commit: 95a83d824c7ffd8f61f627fab3aa22dae3a65fcf URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=95a83d824c7ff...
Author: Roberto Bagnara bagnara@cs.unipr.it Date: Sat Aug 28 14:11:34 2010 +0200
Fixed the argument type of limit_virtual_memory(): should be unsigned long.
---
demos/ppl_lcdd/ppl_lcdd.cc | 4 ++-- demos/ppl_pips/ppl_pips.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/demos/ppl_lcdd/ppl_lcdd.cc b/demos/ppl_lcdd/ppl_lcdd.cc index 844b515..54516b2 100644 --- a/demos/ppl_lcdd/ppl_lcdd.cc +++ b/demos/ppl_lcdd/ppl_lcdd.cc @@ -332,7 +332,7 @@ set_alarm_on_cpu_time(const unsigned seconds, sig_handler_type handler) { #if PPL_HAVE_DECL_RLIMIT_AS
void -limit_virtual_memory(const unsigned bytes) { +limit_virtual_memory(const unsigned long bytes) { struct rlimit t;
if (getrlimit(RLIMIT_AS, &t) != 0) @@ -348,7 +348,7 @@ limit_virtual_memory(const unsigned bytes) { #else
void -limit_virtual_memory(unsigned) { +limit_virtual_memory(unsigned long) { }
#endif // !PPL_HAVE_DECL_RLIMIT_AS diff --git a/demos/ppl_pips/ppl_pips.cc b/demos/ppl_pips/ppl_pips.cc index 46a4fe9..72502ab 100644 --- a/demos/ppl_pips/ppl_pips.cc +++ b/demos/ppl_pips/ppl_pips.cc @@ -618,7 +618,7 @@ warning(const char* format, ...) { #if PPL_HAVE_DECL_RLIMIT_AS
void -limit_virtual_memory(const unsigned bytes) { +limit_virtual_memory(const unsigned long bytes) { struct rlimit t;
if (getrlimit(RLIMIT_AS, &t) != 0) @@ -634,7 +634,7 @@ limit_virtual_memory(const unsigned bytes) { #else
void -limit_virtual_memory(unsigned) { +limit_virtual_memory(unsigned long) { }
#endif // !PPL_HAVE_DECL_RLIMIT_AS