PMunch / futhark

Automatic wrapping of C headers in Nim
MIT License
355 stars 19 forks source link

type mismatch when running tests/tcstring.nim #68

Open xrfez opened 1 year ago

xrfez commented 1 year ago

Should this line be throwing a type mismatch? https://github.com/PMunch/futhark/blob/44a761d6ab69c2a979ed36d51a68e1b26e6a1d6b/tests/tcstring.nim#L9

Should I be using something like this?

doAssert my_func(cast[ptr Tchar]("hello".cstring)) == 5
Nim Compiler Version 1.6.12 [Windows: amd64]
Compiled at 2023-03-10
Copyright (c) 2006-2023 by Andreas Rumpf

active boot switches: -d:release