mirror of
https://github.com/odin-lang/Odin.git
synced 2026-08-14 01:34:35 +00:00
Merge pull request #7267 from kalsprite/rol
Fix Name Canonicalization Rotate Left Typo
This commit is contained in:
@@ -284,7 +284,7 @@ void typeid_hash_context_init(TypeidHashContext *hash_ctx) {
|
||||
u64 rotate_left64(u64 x, u64 k) {
|
||||
static u64 const n = 64;
|
||||
u64 s = k & (n-1);
|
||||
return (x<<s) | (x>>(n-2));
|
||||
return (x<<s) | (x>>(n-s));
|
||||
}
|
||||
|
||||
void sip_compress(SipHashContext *sip) {
|
||||
|
||||
Reference in New Issue
Block a user