Fix a small memory leak caused by bad indexing of EC recovery matrices
parent
28d5e53c6c
commit
2f5e769a29
|
@ -142,11 +142,11 @@ inline bool operator < (const reed_sol_erased_t &a, const reed_sol_erased_t &b)
|
|||
for (int i = 0; i < a.size && i < b.size; i++)
|
||||
{
|
||||
if (a.data[i] < b.data[i])
|
||||
return -1;
|
||||
return true;
|
||||
else if (a.data[i] > b.data[i])
|
||||
return 1;
|
||||
return false;
|
||||
}
|
||||
return 0;
|
||||
return false;
|
||||
}
|
||||
|
||||
struct reed_sol_matrix_t
|
||||
|
|
Loading…
Reference in New Issue