Xcos tests: fix computational_functions, cumsum, error_reporting_nw, model2blk, bug_1...
[scilab.git] / scilab / modules / scicos / src / cpp / createblklist.cpp
index d04a4f3..be511cc 100644 (file)
@@ -322,9 +322,9 @@ types::InternalType* createblklist(const scicos_block* const Blocks, const int f
     m->append(new types::Double(static_cast<double>(Blocks->nin)));
 
     /* 17 - insz */
-    types::Double* insz = new types::Double(Blocks->nin, 1);
+    types::Double* insz = new types::Double(3 * Blocks->nin, 1);
     d = insz->get();
-    for (int i = 0; i < Blocks->nin; ++i)
+    for (int i = 0; i < 3 * Blocks->nin; ++i)
     {
         d[i] = static_cast<double>(Blocks->insz[i]);
     }