use bool literals for bools

This commit is contained in:
Folkert 2023-04-26 23:33:52 +02:00
parent 048615e6a5
commit 64130dbbbc
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -54,11 +54,11 @@ pub fn eq_generic<'a>(
Stmt::Let(
Symbol::BOOL_TRUE,
Expr::Literal(Literal::Int(1i128.to_ne_bytes())),
Expr::Literal(Literal::Bool(true)),
LAYOUT_BOOL,
root.arena.alloc(Stmt::Let(
Symbol::BOOL_FALSE,
Expr::Literal(Literal::Int(0i128.to_ne_bytes())),
Expr::Literal(Literal::Bool(false)),
LAYOUT_BOOL,
root.arena.alloc(main_body),
)),