Emit bytecode in .c/.h files with unsigned char type.

This commit is contained in:
Mike Pall 2016-07-17 16:24:30 +02:00
parent 92d9ff211a
commit d41469c124

View File

@ -125,12 +125,12 @@ extern "C"
#ifdef _WIN32 #ifdef _WIN32
__declspec(dllexport) __declspec(dllexport)
#endif #endif
const char %s%s[] = { const unsigned char %s%s[] = {
]], LJBC_PREFIX, ctx.modname)) ]], LJBC_PREFIX, ctx.modname))
else else
fp:write(string.format([[ fp:write(string.format([[
#define %s%s_SIZE %d #define %s%s_SIZE %d
static const char %s%s[] = { static const unsigned char %s%s[] = {
]], LJBC_PREFIX, ctx.modname, #s, LJBC_PREFIX, ctx.modname)) ]], LJBC_PREFIX, ctx.modname, #s, LJBC_PREFIX, ctx.modname))
end end
local t, n, m = {}, 0, 0 local t, n, m = {}, 0, 0