Skip to content

Commit

Permalink
Only resolve pair if no alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroMemes committed Sep 30, 2024
1 parent 68b8a7d commit 3a44c2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Scanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace hat::detail {
#endif

// If no "optimal" pair was found, find the first byte pair in the signature
if (!this->pairIndex.has_value()) {
if (!this->pairIndex.has_value() && this->alignment == hat::scan_alignment::X1) {
for (auto it = this->signature.begin(); it != std::prev(this->signature.end()); it++) {
const auto i = static_cast<size_t>(it - this->signature.begin());
auto& a = *it;
Expand Down

0 comments on commit 3a44c2f

Please sign in to comment.