add test solution and try to fix get id code bug

This commit is contained in:
2025-04-15 20:09:34 +08:00
parent 5e2da17c28
commit e8ec4c2a86
10 changed files with 127 additions and 79 deletions

View File

@@ -50,14 +50,14 @@ namespace Common
{
for (var i = 0; i < len; i++)
{
num += Convert.ToUInt64(bytes[len - 1 - i] << (i << 3));
num += Convert.ToUInt64((UInt64)bytes[len - 1 - i] << (i << 3));
}
}
else
{
for (var i = 0; i < len; i++)
{
num += Convert.ToUInt64(bytes[i] << ((int)(len - 1 - i) << 3));
num += Convert.ToUInt64((UInt64)bytes[i] << ((int)(len - 1 - i) << 3));
}
}