Skip to content

Commit 31c1b98

Browse files
committed
independant: fix logic
1 parent dac23dd commit 31c1b98

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

include/pycppad/independent.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,8 @@ namespace pycppad
2727
const bool record_compare_)
2828
{
2929
ADVector x_(x), dynamic(0);
30-
size_t abort_op_index = abort_op_index_;
31-
bool record_compare = record_compare_;
32-
::CppAD::Independent(x_, abort_op_index, record_compare, dynamic);
30+
::CppAD::Independent(x_, abort_op_index_, record_compare_, dynamic);
3331
x = x_;
34-
return;
3532
}
3633

3734
static void expose(const std::string & func_name = "Independent")

0 commit comments

Comments
 (0)