From 9ebef6f606c295b994f305e10280639205e3d666 Mon Sep 17 00:00:00 2001 From: CoffeeLink Date: Fri, 28 Nov 2025 14:28:54 +0100 Subject: [PATCH] FIX: Incorrect Float generation. --- src/CCSharp/Lua/CompilationInstance.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CCSharp/Lua/CompilationInstance.cs b/src/CCSharp/Lua/CompilationInstance.cs index 0a56437..a747edd 100644 --- a/src/CCSharp/Lua/CompilationInstance.cs +++ b/src/CCSharp/Lua/CompilationInstance.cs @@ -258,7 +258,7 @@ public bool VisitConstantValueNode(ConstantValueNode node, CompilationState stat break; case DataValueType.Integer: case DataValueType.Float: - state.Write(node.Value.ToString()); + state.Write(node.Value.ToString().Replace(',', '.')); break; case DataValueType.String: WriteString(state, node.Value.ToString());