So, I have a problem with defiining an unsigned short int.
In LuaJIT's ffi, defining unsigned short int does valid, but in cffi-lua, it throws an error.
local cffi = require 'cffi'
cffi.cdef[[
unsigned short int myInt; // <-- Error/Invalid
unsigned int myOtherInt; // <-- Valid
]]
Hello 👋
So, I have a problem with defiining an
unsigned short int
. In LuaJIT'sffi
, definingunsigned short int
does valid, but in cffi-lua, it throws an error.