diff options
| author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-14 12:25:23 +0200 |
|---|---|---|
| committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-14 12:25:23 +0200 |
| commit | 792128255b6c6add22f97ea60734181cb915f2ae (patch) | |
| tree | c3d8e3a3466639591245495ec0148d49732193c3 /src/intercopycontext.cpp | |
| parent | 6177a3c6b5a05ac2c64978ccf3ca11de9793505b (diff) | |
| download | lanes-792128255b6c6add22f97ea60734181cb915f2ae.tar.gz lanes-792128255b6c6add22f97ea60734181cb915f2ae.tar.bz2 lanes-792128255b6c6add22f97ea60734181cb915f2ae.zip | |
More fixes to make clang happy
Diffstat (limited to 'src/intercopycontext.cpp')
| -rw-r--r-- | src/intercopycontext.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/intercopycontext.cpp b/src/intercopycontext.cpp index 190e15e..1ccef80 100644 --- a/src/intercopycontext.cpp +++ b/src/intercopycontext.cpp | |||
| @@ -183,7 +183,7 @@ void InterCopyContext::copyFunction() const | |||
| 183 | STACK_GROW(L1, 2); | 183 | STACK_GROW(L1, 2); |
| 184 | STACK_CHECK_START_REL(L1, 0); | 184 | STACK_CHECK_START_REL(L1, 0); |
| 185 | 185 | ||
| 186 | // 'lua_dump()' needs the function at top of stack | 186 | // 'luaG_dump()' needs the function at top of stack |
| 187 | // if already on top of the stack, no need to push again | 187 | // if already on top of the stack, no need to push again |
| 188 | bool const _needToPush{ L1_i != lua_gettop(L1) }; | 188 | bool const _needToPush{ L1_i != lua_gettop(L1) }; |
| 189 | if (_needToPush) { | 189 | if (_needToPush) { |
| @@ -1136,7 +1136,6 @@ namespace { | |||
| 1136 | */ | 1136 | */ |
| 1137 | [[nodiscard]] InterCopyResult InterCopyContext::interCopyOne() const | 1137 | [[nodiscard]] InterCopyResult InterCopyContext::interCopyOne() const |
| 1138 | { | 1138 | { |
| 1139 | static constexpr int kPODmask = (1 << LUA_TNIL) | (1 << LUA_TBOOLEAN) | (1 << LUA_TLIGHTUSERDATA) | (1 << LUA_TNUMBER) | (1 << LUA_TSTRING); | ||
| 1140 | STACK_GROW(L2, 1); | 1139 | STACK_GROW(L2, 1); |
| 1141 | STACK_CHECK_START_REL(L1, 0); | 1140 | STACK_CHECK_START_REL(L1, 0); |
| 1142 | STACK_CHECK_START_REL(L2, 0); | 1141 | STACK_CHECK_START_REL(L2, 0); |
