Fixed uint8_t being bound to byte instead of ubyte (#2735)

This commit is contained in:
ichordev 2022-03-06 10:32:38 +10:00 committed by GitHub
parent 6c9248914e
commit 630890f5de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,7 +90,7 @@ local function convert_type(arg)
elseif hasPrefix(ctype, "uint16_t") then
ctype = ctype:gsub("uint16_t", "ushort")
elseif hasPrefix(ctype, "uint8_t") then
ctype = ctype:gsub("uint8_t", "byte")
ctype = ctype:gsub("uint8_t", "ubyte")
elseif hasPrefix(ctype, "uintptr_t") then
ctype = ctype:gsub("uintptr_t", "ulong")
elseif hasPrefix(ctype, "const ") and hasSuffix(ctype, "*") then