1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-09 23:25:43 +00:00

Fix ulong.RotateRight left-shift

This commit is contained in:
Oliver Booth 2022-05-07 23:37:40 +01:00
parent d405faf6e2
commit e6a858c7e7
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634

View File

@ -44,6 +44,6 @@ public static class UInt64Extensions
#endif
public static ulong RotateRight(this ulong value, int count)
{
return (value >> count) | (value << (32 - count));
return (value >> count) | (value << (64 - count));
}
}