fix: 4 个 CRITICAL bug 修复
- C1: placement.rs 删除列偏移特殊处理 (col==6→5),place_bit 已自动跳过保留区 - C2: version.rs V5-H 纠错表 h_g1: 4→2 (总码字数 200→134) - C3: mode.rs Kanji 编码删除冗余 if/else 重复分支 - C4: galois.rs div() 返回 Option<u8> 替代 panic!
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
||||
use std::sync::OnceLock;
|
||||
use serde::Serialize;
|
||||
use std::sync::OnceLock;
|
||||
|
||||
/// 纠错级别
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize)]
|
||||
@@ -272,7 +272,7 @@ static VERSION_TABLE: [VersionRow; 40] = [
|
||||
q_g2_data: 16,
|
||||
h_total: 134,
|
||||
h_ec: 22,
|
||||
h_g1: 4,
|
||||
h_g1: 2,
|
||||
h_g1_data: 11,
|
||||
h_g2: 2,
|
||||
h_g2_data: 12,
|
||||
|
||||
Reference in New Issue
Block a user