freebsd-ports/math/lcalc/files/patch-include_Lexplicit__formula.h
Thierry Thomas d9d39e0a5b Adding lcalc, the L-function c++ class library and, the command line program
lcalc, to be used by SageMath.

Remark: this is not the latest version, but the one currently used by Sage,
with their patches.
2020-03-30 12:40:37 +00:00

17 lines
516 B
C++

--- include/Lexplicit_formula.h.orig 2012-08-08 21:21:55 UTC
+++ include/Lexplicit_formula.h
@@ -1,4 +1,5 @@
// This file mainly due to Kevin McGown, with modifications by Michael Rubinstein
+// Patches borrowed from SageMath.
#ifndef Lexplicit_formula_H
#define Lexplicit_formula_H
@@ -25,7 +26,7 @@ int L_function <ttype>::
dirichlet_coeffs_log_diff(int num_coeffs, Complex *c)
{
- Complex b[num_coeffs+1];
+ std::vector<Complex> b(num_coeffs+1);
int j, n, d1, ind;
Complex total, total2, temp;