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());