[GIT] ppl/ppl(master): Don't take the address of a temporary object.

Module: ppl/ppl Branch: master Commit: 3fe09524b326e388a74486f407583a902d592d75 URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=3fe09524b326e...
Author: Enea Zaffanella zaffanella@cs.unipr.it Date: Thu Mar 18 18:37:22 2010 +0100
Don't take the address of a temporary object.
---
...ppl_interface_generator_java_classes_cc_code.m4 | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/interfaces/Java/jni/ppl_interface_generator_java_classes_cc_code.m4 b/interfaces/Java/jni/ppl_interface_generator_java_classes_cc_code.m4 index 9e4d8b5..b6aed73 100644 --- a/interfaces/Java/jni/ppl_interface_generator_java_classes_cc_code.m4 +++ b/interfaces/Java/jni/ppl_interface_generator_java_classes_cc_code.m4 @@ -859,12 +859,10 @@ Java_parma_1polyhedra_1library_@1CLASS@_wrap_1assign Bounded_Integer_Type_Representation r = build_cxx_bounded_rep(env, j_r); Bounded_Integer_Type_Overflow o = build_cxx_bounded_overflow(env, j_o); Constraint_System cs = build_cxx_constraint_system(env, j_cs); - Constraint_System* pcs = &build_cxx_constraint_system(env, j_cs); - unsigned int cx = - jtype_to_unsigned<unsigned int>(j_integer_to_j_int(env, j_cx)); + unsigned cx = jtype_to_unsigned<unsigned>(j_integer_to_j_int(env, j_cx)); bool ind = (j_boolean_to_bool(env, j_ind));
- this_ptr->wrap_assign(vars, w, r, o, pcs, cx, ind); + this_ptr->wrap_assign(vars, w, r, o, &cs, cx, ind); } CATCH_ALL
participants (1)
-
Enea Zaffanella