PMunch/futhark

type mismatch when running tests/tcstring.nim

xrfez opened this issue · 0 comments

xrfez commented

Should this line be throwing a type mismatch?

doAssert my_func("Hello".cstring) == 5

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