diff --git a/scripts/bindings-d.lua b/scripts/bindings-d.lua index 9858e4974..fd7941e50 100644 --- a/scripts/bindings-d.lua +++ b/scripts/bindings-d.lua @@ -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