summaryrefslogtreecommitdiffstats
path: root/science/qcl/files/patch-eval.cc
blob: bd25859c7615bfccd3700d52fc0d5fb31b6214c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- eval.cc.orig	2014-03-27 17:24:43.000000000 +0400
+++ eval.cc	2014-09-04 21:33:12.000000000 +0400
@@ -474,10 +474,10 @@
   void *c;
   int i;
   int argc=pexpr->n();
-  tValue v[argc];
+  std::vector<tValue> v(argc);
   tInt n[argc];
   tReal r[argc];
-  tComplex z[argc];
+  std::vector<tComplex> z(argc);
   tInt rn;
   tReal rr;
   TRACE();
OpenPOWER on IntegriCloud