fix(compiler): Force same signedness of integers in _verifyGLWEIntegerOperator

This commit is contained in:
Andi Drebes
2022-01-07 11:09:38 +01:00
committed by Quentin Bourgerie
parent d83a462e20
commit ce9d86014d

View File

@@ -42,7 +42,7 @@ mlir::LogicalResult _verifyGLWEIntegerOperator(mlir::OpState &op,
}
// verify consistency of width of inputs
if (b.getWidth() > a.getP() + 1) {
if ((int)b.getWidth() > a.getP() + 1) {
op.emitOpError()
<< "should have the width of `b` equals or less than 'p'+1: "
<< b.getWidth() << " <= " << a.getP() << "+ 1";