Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
svpcom committed Aug 7, 2024
1 parent 3f04d1e commit 3d1fdae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fec.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ fec_encode(const fec_t* code, const gf** src, gf** fecs, size_t sz) {
void
build_decode_matrix_into_space(const fec_t*restrict const code, const unsigned*const restrict index, const unsigned k, gf*restrict const matrix) {
gf* p = matrix;
for (uint16_t i=0; i < k; i++, p += k) {
for (unsigned i=0; i < k; i++, p += k) {
if (index[i] < k) {
memset(p, 0, k);
p[i] = 1;
Expand Down

0 comments on commit 3d1fdae

Please sign in to comment.