Skip to content

Commit

Permalink
replace ub bitshift with something that doesnt warn
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Dec 19, 2022
1 parent 0785900 commit e276816
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Etterna/Models/HighScore/Replay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <fstream>
#include <sstream>
#include <utility>
#include <limits>

// for replay compression
// why does this have to be complicated
Expand Down Expand Up @@ -3620,7 +3621,8 @@ class LunaReplay : public Luna<Replay>

static auto GetLastReplaySnapshot(T* p, lua_State* L) -> int
{
p->GetReplaySnapshotForNoterow((1 << 31) - 1)->PushSelf(L);
p->GetReplaySnapshotForNoterow(std::numeric_limits<int>::max() - 1)
->PushSelf(L);
return 1;
}

Expand Down

0 comments on commit e276816

Please sign in to comment.