Closed geotre closed 7 months ago
The Nim bindings generator creates converters for many types that contain a static assert, e.g.:
converter toPassActioncolors*[N:static[int]](items: array[N, ColorAttachmentAction]): array[4, ColorAttachmentAction] = static: assert(N < 4) for index,item in items.pairs: result[index]=item
The assert needs to be <= not < right?
<=
<
Opening a PR
Yeah looks like a got that wrong. Thanks for the PR, will merge right away.
Closing ticket because PR has been merged.
The Nim bindings generator creates converters for many types that contain a static assert, e.g.:
The assert needs to be
<=
not<
right?Opening a PR