Skip to content

Commit 89ddd90

Browse files
committed
Fix running test on lua <= 5.2
1 parent 61345a4 commit 89ddd90

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎Tests/Source/OverloadTests.cpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,14 @@ TEST_F(OverloadTests, IntegerTypeFallbackOverloads)
160160
ASSERT_TRUE(result().isNumber());
161161
EXPECT_EQ(3, result<int>());
162162

163+
#if LUA_VERSION_NUM > 502
163164
if constexpr (sizeof(lua_Integer) >= sizeof(int64_t))
164165
{
165166
runLua("result = test (2147483648)");
166167
ASSERT_TRUE(result().isNumber());
167168
EXPECT_EQ(4, result<int>());
168169
}
170+
#endif
169171
}
170172

171173
TEST_F(OverloadTests, UnregisteredClass)

0 commit comments

Comments
 (0)