Skip to content
Snippets Groups Projects
Commit b1a683c7 authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

dg : add size check on the function provided as strong boundary

condition
parent aa0b8ef0
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,6 @@ class functionPython : public function { ...@@ -53,7 +53,6 @@ class functionPython : public function {
: function(nbCol), _pycallback(callback) : function(nbCol), _pycallback(callback)
{ {
args.resize(dependencies.size()); args.resize(dependencies.size());
_swigA.resize(args.size());
for (int i = 0; i < dependencies.size(); i++) { for (int i = 0; i < dependencies.size(); i++) {
setArgument(args[i], dependencies[i]); setArgument(args[i], dependencies[i]);
} }
...@@ -63,9 +62,7 @@ class functionPython : public function { ...@@ -63,9 +62,7 @@ class functionPython : public function {
: function(nbCol), _pycallback(callback) : function(nbCol), _pycallback(callback)
{ {
args.resize(dependencies.size()); args.resize(dependencies.size());
_swigA.resize(args.size());
for (int i = 0; i < dependencies.size(); i++) { for (int i = 0; i < dependencies.size(); i++) {
printf("%p %i\n", dependencies[i].first, dependencies[i].second);
setArgument(args[i], dependencies[i].first, dependencies[i].second); setArgument(args[i], dependencies[i].first, dependencies[i].second);
} }
_init(); _init();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment