HuwCampbell / grenade

Deep Learning in Haskell
BSD 2-Clause "Simplified" License
1.45k stars 84 forks source link

Fix off-by-one error in C code #41

Closed erikd closed 7 years ago

erikd commented 7 years ago

Noticed there was some C code, had a look an noticed an off by one error. If len is an actual length and the first index is 0 then all indices should be < len.

HuwCampbell commented 7 years ago

Ta