Skip to content

Commit

Permalink
Add a call to std::move that I missed (#1917)
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseTG authored Dec 15, 2023
1 parent e1821d0 commit eedb0ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GBACart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ std::unique_ptr<CartCommon> ParseROM(std::unique_ptr<u8[]>&& romdata, u32 romlen
std::unique_ptr<u8[]> cartsram;
try
{
cartsram = sramdata ? std::make_unique<u8[]>(sramlen) : nullptr;
cartsram = std::move(sramdata) ? std::make_unique<u8[]>(sramlen) : nullptr;
}
catch (const std::bad_alloc& e)
{
Expand Down

0 comments on commit eedb0ba

Please sign in to comment.