Thursday, July 2, 2015 11:35 AM +02:00 from Wolfgang Pupp
<wolfgang.pupp@xxxxxxxxx>:
char[] -> char * is valid cast in C.
Yes. It is also a valid cast in LuaJIT.
Invalid casts (like float to pointer) raise an error.
Arrays are even compatible with pointers, meaning that the cast is not
needed; a LuaJIT-FFI-function expecting a pointer will also accept an
array instead.
What are you trying to achieve?