Merge pull request #1178 from cengizIO/master

Avoid impl dependent multi-char constants
This commit is contained in:
Samuel Surtees 2018-10-16 18:27:47 +10:00 committed by GitHub
commit 367b227d22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -851,7 +851,7 @@ void shimInitialize(lua_State* L)
// Find the 'SHIM' entry in the registry.
const Table* reg = hvalue(&G(L)->l_registry);
const Node* n = findNode(reg, 'SHIM');
const Node* n = findNode(reg, 0x5348494D); // equal to 'SHIM'
assert(n != NULL);
g_shimTable = (const LuaFunctionTable_t*)n->i_val.value_.p;

View File

@ -194,7 +194,7 @@ int premake_init(lua_State* L)
#endif
lua_pushlightuserdata(L, &s_shimTable);
lua_rawseti(L, LUA_REGISTRYINDEX, 'SHIM');
lua_rawseti(L, LUA_REGISTRYINDEX, 0x5348494D); // equal to 'SHIM'
/* push the application metadata */
lua_pushstring(L, LUA_COPYRIGHT);