HuwCampbell / grenade

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

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

Closed erikd closed 6 years ago

erikd commented 6 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 6 years ago

Ta