From 38c329c5f74253a3778ff8a80c19f282ec78e8dc Mon Sep 17 00:00:00 2001 From: Torben Ewert Date: Sat, 20 Jun 2026 11:14:20 +0200 Subject: [PATCH] feat: add float constants --- lib/pinc_compiler/compiler.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pinc_compiler/compiler.ml b/lib/pinc_compiler/compiler.ml index 9415601..7fd95fc 100644 --- a/lib/pinc_compiler/compiler.ml +++ b/lib/pinc_compiler/compiler.ml @@ -36,7 +36,7 @@ let rec compile_expr t (expr : Pinc_Types.Ast.expression) = | String _ -> t | Char _ -> t | Int i -> emit_constant t (Pinc_Bytecode.Value.Int i) - | Float _ -> t + | Float f -> emit_constant t (Pinc_Bytecode.Value.Float f) | Bool b -> if b then emit t Pinc_Bytecode.Instruction.I_True -- 2.51.2