Skip to content

Commit

Permalink
Bugfix: smallset must produce compatible order of u64 when converted …
Browse files Browse the repository at this point in the history
…to array
  • Loading branch information
joern274 committed Jul 1, 2024
1 parent f3506be commit a0dc036
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/hawkeye/src/sbox_database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ smallset_t smallset_t::shuffle(u8 shift) const

void smallset_t::to_array(u64* arr) const
{
memcpy(arr, dw64, sizeof(dw64));
for (int i=0; i<3; i++)
arr[i] = dw64[3-i];
}

void smallset_t::set(u8 bit)
Expand Down

0 comments on commit a0dc036

Please sign in to comment.