JakobOvrum/LuaD

inconsistent use of bool in C API

belm0 opened this issue · 1 comments

I noticed the C API uses bool in place of int for some functions but not others (e.g. lua_equal vs. lua_isnumber).

I'm also wondering how bool can be safely used in these definitions since D defines bool size as 1 byte, while int is 4. Is that making some assumptions about endianess?

They should use int, using bool is not always safe.