diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-11-22 22:20:30 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-11-22 22:20:30 +0000 |
| commit | 3f3ed0b333a511d83402d29dd8b3be9151b4173b (patch) | |
| tree | c0813ecde281735d9d60e8734682894cdc0136a8 /src/ranked_match.cc | |
| parent | d15cc02c013c9c4e8b3206c8a3d278b1d97309a3 (diff) | |
Fix literal type that must be 64 bits
Diffstat (limited to 'src/ranked_match.cc')
| -rw-r--r-- | src/ranked_match.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ranked_match.cc b/src/ranked_match.cc index 1c8021c5..1f3e36fd 100644 --- a/src/ranked_match.cc +++ b/src/ranked_match.cc @@ -14,15 +14,15 @@ UsedLetters used_letters(StringView str) for (auto c : str) { if (c >= 'a' and c <= 'z') - res |= 1uL << (c - 'a'); + res |= 1uLL << (c - 'a'); else if (c >= 'A' and c <= 'Z') - res |= 1uL << (c - 'A' + 26); + res |= 1uLL << (c - 'A' + 26); else if (c == '_') - res |= 1uL << 53; + res |= 1uLL << 53; else if (c == '-') - res |= 1uL << 54; + res |= 1uLL << 54; else - res |= 1uL << 63; + res |= 1uLL << 63; } return res; } |
