Skip to content

Commit

Permalink
Merge pull request #1178 from cengizIO/master
Browse files Browse the repository at this point in the history
Avoid impl dependent multi-char constants
  • Loading branch information
samsinsane authored Oct 16, 2018
2 parents ea1df50 + 290f3f2 commit 367b227
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contrib/luashim/luashim.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/host/premake.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 367b227

Please sign in to comment.