Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kunitoki committed Feb 25, 2024
1 parent e4f4fb7 commit df62c74
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/Source/StackTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2352,7 +2352,7 @@ TEST_F(StackTests, StdStringView)
TEST_F(StackTests, VoidPointer)
{
{
void* ptr = reinterpret_cast<void*>(0xdead1984);
void* ptr = reinterpret_cast<void*>(static_cast<std::uintptr_t>(0xdead1984ll));
(void)luabridge::push(L, ptr);

EXPECT_TRUE(luabridge::isInstance<void*>(L, -1));
Expand Down Expand Up @@ -2407,15 +2407,15 @@ TEST_F(StackTests, VoidPointerStackOverflow)
{
exhaustStackSpace();

void* ptr = reinterpret_cast<void*>(0xdead1984);
void* ptr = reinterpret_cast<void*>(static_cast<std::uintptr_t>(0xdead1984ll));

ASSERT_FALSE(luabridge::push(L, ptr));
}

TEST_F(StackTests, ConstVoidPointer)
{
{
const void* ptr = reinterpret_cast<const void*>(0xdead1984);
const void* ptr = reinterpret_cast<const void*>(static_cast<std::uintptr_t>(0xdead1984ll));
(void)luabridge::push(L, ptr);

EXPECT_TRUE(luabridge::isInstance<void*>(L, -1));
Expand Down Expand Up @@ -2470,7 +2470,7 @@ TEST_F(StackTests, ConstVoidPointerStackOverflow)
{
exhaustStackSpace();

const void* ptr = reinterpret_cast<const void*>(0xdead1984);
const void* ptr = reinterpret_cast<const void*>(static_cast<std::uintptr_t>(0xdead1984ll));

ASSERT_FALSE(luabridge::push(L, ptr));
}
Expand Down

0 comments on commit df62c74

Please sign in to comment.