Skip to content

Commit

Permalink
fix(OR-instead-of-add) (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
DiTo97 authored Aug 29, 2024
1 parent 127688d commit 2de765c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ uint64_t string_to_base256_int(const std::string& string) {
uint64_t number = 0;

for (char character : string) {
number = (number << 8) + static_cast<uint64_t>(character);
number = (number << 8) | static_cast<uint64_t>(character);
}

return number;
Expand Down

0 comments on commit 2de765c

Please sign in to comment.