]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
Emit bytecode in .c/.h files with unsigned char type.
authorMike Pall <mike>
Sun, 17 Jul 2016 14:24:30 +0000 (16:24 +0200)
committerMike Pall <mike>
Sun, 17 Jul 2016 14:24:30 +0000 (16:24 +0200)
src/jit/bcsave.lua

index d0968b187603f769a8456f40895a472c37200593..5117f714ac7e01ceba72fe68243b8c299af7e9a2 100644 (file)
@@ -125,12 +125,12 @@ extern "C"
 #ifdef _WIN32
 __declspec(dllexport)
 #endif
-const char %s%s[] = {
+const unsigned char %s%s[] = {
 ]], LJBC_PREFIX, ctx.modname))
   else
     fp:write(string.format([[
 #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))
   end
   local t, n, m = {}, 0, 0