Skip to content

Commit 4f03653

Browse files
committed
fix: change unsigned long to size_t in compute_barycentric_evaluation header
The implementation (.cpp) already uses size_t but the header declared unsigned long. On Linux these are the same type, but on Windows LLP64 unsigned long is 32-bit while size_t is 64-bit, causing -Wshorten-64-to-32 when passing domain.size (size_t) to the parameter.
1 parent fff0739 commit 4f03653

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

barretenberg/cpp/src/barretenberg/polynomials/polynomial_arithmetic.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ void coset_ifft(std::vector<Fr*> coeffs, const EvaluationDomain<Fr>& domain);
8787
// src_domain, const EvaluationDomain<Fr>& target_domain);
8888

8989
fr compute_barycentric_evaluation(const fr* coeffs,
90-
unsigned long num_coeffs,
90+
size_t num_coeffs,
9191
const fr& z,
9292
const EvaluationDomain<fr>& domain);
9393

0 commit comments

Comments
 (0)