From 3f3ed0b333a511d83402d29dd8b3be9151b4173b Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 22 Nov 2016 22:20:30 +0000 Subject: [PATCH] Fix literal type that must be 64 bits --- src/ranked_match.cc | 10 +++++----- 1 file 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; }