Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jussienko committed Sep 17, 2019
1 parent 9ccb6b8 commit 17c8f05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/mooc/using-compiled-code/interfacing-c-with-cffi.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ c = np.zeros_like(a)
# Pointer objects need to be passed to library
aptr = ffi.cast("double *", ffi.from_buffer(a))
bptr = ffi.cast("double *", ffi.from_buffer(b))
bptr = ffi.cast("double *", ffi.from_buffer(b))
cptr = ffi.cast("double *", ffi.from_buffer(c))
lib.add(aptr, bptr, cptr, len(a))
~~~
Expand Down

0 comments on commit 17c8f05

Please sign in to comment.