Erk- / genfut

Generate bindings for Futhark
ISC License
37 stars 10 forks source link

No error-checking when copying arrays to CPU #17

Closed athas closed 4 years ago

athas commented 4 years ago

In the generated Rust code that copies Futhark arrays to CPU memory, the error value returned by the "values" function is not checked.

porcuquine commented 4 years ago

I think this is the line that needs error-handling: https://github.com/Erk-/genfut/blob/da778f7cc0c7a8bb1e8b840f653e31540c500c95/src/static/static_array_types.rs#L59