freebsd-ports/science/qcl/files/patch-eval.cc
Dmitry Marakasov b02b01e211 - Fix build with clang by using std::vector instead of variable size array of non-POD type
- Fix build with PLOTUTILS enabled, which was broken when built with GCC
2014-09-04 18:43:58 +00:00

15 lines
347 B
C++

--- 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();