diff --git a/src/Generator.Bind/FuncProcessor.cs b/src/Generator.Bind/FuncProcessor.cs index 7755f40e..c5ce9b52 100644 --- a/src/Generator.Bind/FuncProcessor.cs +++ b/src/Generator.Bind/FuncProcessor.cs @@ -536,11 +536,16 @@ namespace Bind d.Parameters[i].Flow = Parameter.GetFlowDirection((string)node.TypedValue); break; case "count": + d.Parameters[i].ComputeSize = node.Value.Trim(); int count; - if (Int32.TryParse(node.Value, out count)) + if (Int32.TryParse(d.Parameters[i].ComputeSize, out count)) { d.Parameters[i].ElementCount = count; } + else + { + d.Parameters[i].ElementCount = 0; + } break; } }