Fix literal type that must be 64 bits
This commit is contained in:
parent
d15cc02c01
commit
3f3ed0b333
|
@ -14,15 +14,15 @@ UsedLetters used_letters(StringView str)
|
||||||
for (auto c : str)
|
for (auto c : str)
|
||||||
{
|
{
|
||||||
if (c >= 'a' and c <= 'z')
|
if (c >= 'a' and c <= 'z')
|
||||||
res |= 1uL << (c - 'a');
|
res |= 1uLL << (c - 'a');
|
||||||
else if (c >= 'A' and c <= 'Z')
|
else if (c >= 'A' and c <= 'Z')
|
||||||
res |= 1uL << (c - 'A' + 26);
|
res |= 1uLL << (c - 'A' + 26);
|
||||||
else if (c == '_')
|
else if (c == '_')
|
||||||
res |= 1uL << 53;
|
res |= 1uLL << 53;
|
||||||
else if (c == '-')
|
else if (c == '-')
|
||||||
res |= 1uL << 54;
|
res |= 1uLL << 54;
|
||||||
else
|
else
|
||||||
res |= 1uL << 63;
|
res |= 1uLL << 63;
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user