Merge pull request #860 from Blizzard/patch-1
fix for build failure on macOS in debug.
This commit is contained in:
commit
bf1ea2445f
@ -4,5 +4,6 @@ os:
|
||||
|
||||
script:
|
||||
- make -f Bootstrap.mak $TRAVIS_OS_NAME
|
||||
- make -C build/bootstrap -j config=debug
|
||||
- bin/release/premake5 test
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user