diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2014-09-04 18:43:58 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2014-09-04 18:43:58 +0000 |
commit | b02b01e211c277d1a65b7ae165ed829e51ff4793 (patch) | |
tree | 8f1105e9253fb0cbe702fd174b88c9e9a2a4eb41 /science/qcl/files/patch-eval.cc | |
parent | @dirrmtry include/linux, which is used by multiple ports (diff) |
- 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
Diffstat (limited to 'science/qcl/files/patch-eval.cc')
-rw-r--r-- | science/qcl/files/patch-eval.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/science/qcl/files/patch-eval.cc b/science/qcl/files/patch-eval.cc new file mode 100644 index 000000000000..bd25859c7615 --- /dev/null +++ b/science/qcl/files/patch-eval.cc @@ -0,0 +1,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(); |