You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
triangle.append v1 # triangle is a VertexArray, v1 is a Vertex
Dl_106214(triangle_110022, (&v1_110028));
As you can see, the function signature in generated C code has the 2nd argument as a pointer, while Vertex is a normal object. As I've been told, this may be caused by a lack of {.bycopy.} on Vertex; Nim decides it wants to pass such a big object by a pointer. But it is unacceptable to modify the signature of a function if it is part of C FFI.
It was extremely hard to track down the problem, because the code compiled and worked without crashing, just wrote pointers where data was expected...
The text was updated successfully, but these errors were encountered:
As you can see, the function signature in generated C code has the 2nd argument as a pointer, while
Vertex
is a normal object. As I've been told, this may be caused by a lack of{.bycopy.}
onVertex
; Nim decides it wants to pass such a big object by a pointer. But it is unacceptable to modify the signature of a function if it is part of C FFI.It was extremely hard to track down the problem, because the code compiled and worked without crashing, just wrote pointers where data was expected...
The text was updated successfully, but these errors were encountered: