修复位数的问题

This commit is contained in:
Kevin
2017-10-27 16:37:39 +08:00
parent 1ca14510ba
commit 7963be45c1
2 changed files with 2 additions and 2 deletions
+2 -2
View File
@@ -106,8 +106,8 @@ namespace OSS.Common.ComUtils
throw new ArgumentOutOfRangeException("code", "the code is not from [ToCode] method !");
value <<= 5;
if (count == 13 && i == 12)
value = value ^ (num & 0x03); // 最高位只有两位
if (i == 12)
value = value ^ (num & 0x0F); // 最高位只有四位
else
value = value ^ num;
Binary file not shown.