chore: Fixing compilation error of the python bindings

This commit is contained in:
Quentin Bourgerie
2023-03-10 12:27:32 +01:00
parent 645986803c
commit d81c76aa02

View File

@@ -252,9 +252,8 @@ void mlir::concretelang::python::populateCompilerAPISubmodule(
[](mlir::concretelang::ClientParameters &clientParameters) {
std::vector<bool> result;
for (auto input : clientParameters.inputs) {
if (input.encryption.hasValue()) {
result.push_back(
input.encryption.getValue().encoding.isSigned);
if (input.encryption.has_value()) {
result.push_back(input.encryption.value().encoding.isSigned);
} else {
result.push_back(true);
}