From c11b85dd9e0053fdb4516bc2b0f85339427f5a4e Mon Sep 17 00:00:00 2001 From: rick51231 <59838447+rick51231@users.noreply.github.com> Date: Fri, 12 Jan 2024 02:04:01 +0300 Subject: [PATCH] Typos fix --- fec/rs_12_9.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fec/rs_12_9.go b/fec/rs_12_9.go index e0a9e45..212d6a9 100644 --- a/fec/rs_12_9.go +++ b/fec/rs_12_9.go @@ -51,7 +51,7 @@ var ( 31, 45, 67, 216, 183, 123, 164, 118, 196, 23, 73, 236, 127, 12, 111, 246, 108, 161, 59, 82, 41, 157, 85, 170, 251, 96, 134, 177, 187, 204, 62, 90, 203, 89, 95, 176, 156, 169, 160, 81, 11, 245, 22, 235, 122, 117, 44, 215, - 79, 174, 213, 233, 230, 231, 173, 232, 116, 214, 244, 234, 168, 80, + 79, 174, 213, 233, 230, 231, 173, 232, 116, 214, 244, 234, 168, 80, 88, 175 } ) @@ -128,7 +128,7 @@ func RS_12_9_CalcErrorEvaluatorPoly(locator, syndrome, evaluator *RS_12_9_Poly) func RS_12_9_CalcDiscrepancy(locator, syndrome *RS_12_9_Poly, L, n uint8) uint8 { var i, sum uint8 - for i = 0; i < L; i++ { + for i = 0; i <= L; i++ { sum ^= RS_12_9_Galois_Mul(locator[i], syndrome[n-i]) }