From 8994c9dbeb516c263966b61e568162001ff40b18 Mon Sep 17 00:00:00 2001 From: Wei Dai Date: Mon, 1 Nov 2021 23:50:30 -0700 Subject: [PATCH] Fixed a few compiler errors/warnings resulted from bad merges. --- native/src/seal/evaluator.cpp | 4 ++-- native/src/seal/util/polyarithsmallmod.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/native/src/seal/evaluator.cpp b/native/src/seal/evaluator.cpp index 25f4568b..841b45e0 100644 --- a/native/src/seal/evaluator.cpp +++ b/native/src/seal/evaluator.cpp @@ -680,7 +680,7 @@ namespace seal inverse_ntt_negacyclic_harvey(encrypted1, encrypted1.size(), ntt_table); } - void Evaluator::square_inplace(Ciphertext &encrypted, MemoryPoolHandle pool) + void Evaluator::square_inplace(Ciphertext &encrypted, MemoryPoolHandle pool) const { // Verify parameters. if (!is_metadata_valid_for(encrypted, context_) || !is_buffer_valid(encrypted)) @@ -931,7 +931,7 @@ namespace seal encrypted.scale() = new_scale; } - void Evaluator::bgv_square(Ciphertext &encrypted, MemoryPoolHandle pool) + void Evaluator::bgv_square(Ciphertext &encrypted, MemoryPoolHandle pool) const { if (encrypted.is_ntt_form()) { diff --git a/native/src/seal/util/polyarithsmallmod.h b/native/src/seal/util/polyarithsmallmod.h index 16be6084..d0fef603 100644 --- a/native/src/seal/util/polyarithsmallmod.h +++ b/native/src/seal/util/polyarithsmallmod.h @@ -159,7 +159,7 @@ namespace seal }); } - inline void add_poly_coeffmod( + void add_poly_coeffmod( ConstCoeffIter operand1, ConstCoeffIter operand2, std::size_t coeff_count, const Modulus &modulus, CoeffIter result);