Merge pull request #860 from Blizzard/patch-1

fix for build failure on macOS in debug.
This commit is contained in:
Tom van Dijck 2017-08-02 11:01:23 -07:00 committed by GitHub
commit bf1ea2445f
2 changed files with 3 additions and 2 deletions

View File

@ -4,5 +4,6 @@ os:
script:
- make -f Bootstrap.mak $TRAVIS_OS_NAME
- make -C build/bootstrap -j config=debug
- bin/release/premake5 test

View File

@ -828,12 +828,12 @@ char* luaL_buffinitsize(lua_State* L, luaL_Buffer* B, size_t sz)
return g_shimTable->shimL_buffinitsize(L, B, sz);
}
inline const Node* hashpow2(const Table* t, int n) {
static const Node* hashpow2(const Table* t, int n) {
int i = lmod(n, sizenode(t));
return &t->node[i];
}
inline const Node* findNode(const Table* t, int key) {
static const Node* findNode(const Table* t, int key) {
const Node* n = hashpow2(t, key);
while (n->i_key.tvk.value_.i != key)
{