Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Fe-r-oz committed May 16, 2024
1 parent 7fe95f9 commit ba0c056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ecc/ECC.jl
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function Griesmer_bound(c)
k = code_k(c)
d = distance(c)
sum_val = 0
sum_val = sum(ceil(Int, d / 2 ^ i) for i in 0:k - 1)
sum_val = sum(d / 2 ^ i for i in 0:k - 1)
return n >= sum_val
end

Expand Down

0 comments on commit ba0c056

Please sign in to comment.